As such, you control the resolution when the message is rendered, probably using <html:messages> with the "bundle" attribute.
See http://struts.apache.org/userGuide/struts-html.html#messages
Example:
<html:messages bundle="approvals" id="msg"><c:out value="${msg}" /></html:messages>
Every message in the ActionMessages object (in this case, one saved using "saveErrors") would be evaluated against the "approvals" bundle.
In writing this, it seems like it might be a management challenge to make sure all the keys were defined in the right bundle; I haven't really had cause to use multiple message bundles, so I haven't seen if it turns out to be a real issue or not.
Joe
At 10:24 AM -0700 4/21/05, Ashish Kulkarni wrote:
Hi In my struts-config.xml file i have defined 2 resource files, <message-resources key="approvals" parameter="approval"/> <message-resources key="org.apache.struts.action.MESSAGE" parameter="maps"/>
Is it possible to access messages defined in approvals message file, in ActionMessage. I am using struts 1.2.4. If i do the following ActionMessage message = new ActionMessage("mykey"); I need to define "mykey" in maps message file,
Ashish
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex