Question

Currently we are using Struts1 and we want to use struts2(convention+annotation) for incoming projects.

I'm having a problem with struts2 regarding message resource in Struts1 we use a custom MessageResourceFactory which configured in struts-config.xml

<message-resource factory="" param="">

we used <bean:message> tags in struts1 to call the messages.

I can't find a good way to do it in struts2

any recommendation?

Was it helpful?

Solution

Never mind I ended up, overwriting the defaultTextProvider from Struts2 , define a bean for it in struts.xml and also set it as TextProvider that should be used.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top