You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Anuradha S.Athreya" <an...@world2web.com> on 2006/04/05 07:39:42 UTC

Displaying messages from multiple resource bundles

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