[ https://issues.apache.org/struts/browse/STR-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated STR-2151: ------------------------------- Fix Version/s: 1.4.0 Assignee: (was: Struts Developers) > ActionMessage should include option for bundle > ---------------------------------------------- > > Key: STR-2151 > URL: https://issues.apache.org/struts/browse/STR-2151 > Project: Struts 1 > Issue Type: Improvement > Components: Taglibs > Affects Versions: 1.1.0 > Environment: Operating System: other > Platform: Other > Reporter: Chris Mercer > Priority: Minor > Fix For: 1.4.0 > > > In an Action it is not possible to declare what resource bundle an > ActionMessage > should come from. The ActionMessage class should include an optional property > to declare the name of the property file/ResourceBundle to get the value > from. > In your struts-config.xml if you have defined a message resource like the > following. > <message-resources > key="error_resources" > parameter="org.apache.resource.error" null="false"/> > You should be to create an ActionMessage as follows > ActionMessage am = new ActionMessage("error_resources", "login.failed"); > This would use the "error_resources" bundle to lookup the key "login.failed" > instead of the default global resource bundle. > Additionally, the MessagesTag.java would have to change in the doAfterBody > method (~line 308 revision 1.16) in order to support the new functionality. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.