Hi Using the struts-config.xml file to configure your message resources is preferred as it gives you quite a bit of additional flexibility: You can list multiple message-resources tags to load messages from multiple files. If you do this, use the key attribute to give a unique name to each bundle. e.g.:
<message-resources key="myResources" parameter="com.systemmobile.example.ApplicationResources"/> <message-resources key="moreResources" parameter="com.systemmobile.example.MoreApplicationResources"/> You would then have to give the key name when using the bean:message tag: <bean:message bundle="moreResources" key="some.message.key"/> Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -----Original Message----- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 11:10 AM To: 'Struts Users Mailing List' Subject: Displaying messages from multiple resource bundles Importance: Low I am displaying messages in JSP using resource bundle. I have 2 separate bundles. Depending on the message I would like it to be picked up from the particular bundle to which that message belongs to. How do I specify the multiple bundles? this doesnt seem to work: <html:messages bundle="viewmessages" id="message" message='true'> <BR> <bean:write name="message"/> </html:messages> <html:messages bundle="errormessages" id="message" message='true'> <BR> <bean:write name="message"/> </html:messages> I have defined both these bundles in struts-config.xml <message-resources key="viewmessages" parameter="resources.application" /> <message-resources key="errormessages" parameter="resources.myapperrormessages"/> Regards, Anuradha S.Athreya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]