DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30401>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30401

ActionMessage should include option for bundle

           Summary: ActionMessage should include option for bundle
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to