Search code examples
struts2migrationstruts1struts-1

struts1 to struts2 migration message resource


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?


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.