At 11:44 AM +0530 8/18/05, sachin wrote:
hi ,
Yes, you can use any number of struts-config files; there is a
servlet init parameter which accepts a comma-separated list.
I Have many struts-config files in one of my application and i
initialized them with a comma separeted List ...
EveryThing Works fine until it comes to ActionMessages ....
In each struts-config file i defined the message-resources with a
Key and accesssed them with that Key ...
<message-resources key="master"
parameter="org.para.resources.master.MasterMessageResources"
null="false" />
But the ActionMessage could not pick up messages from resource files
which gave the biggest blow to my software and i had to show
messages with JavaScript.
could u please tell me how to Make the ActionMessages work with
Multiple Struts Config file
If you use "key" when defining a message resources file, then you
must use the same value in the "bundle" attribute when using JSP tags
which are meant to retrieve messages. As in:
<html:messages bundle="master" id="msg">${msg}</html:messages>
I've never needed to use more than one message-resources element in a
project, so I haven't spent much time using these features, but
that's how it works. If you are not specifying a "bundle" in
<html:messages> or <html:errors> then Struts will look for a
<message-resources> which was configured without any "key" attribute.
See:
http://struts.apache.org/userGuide/configuration.html#resources_config
http://struts.apache.org/userGuide/struts-html.html#messages
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]