As I mentioned earlier, I do have entries for difference bundles in the
struts-config.xml,
I have a common Message.jsp which displays a message(s) created during
request processing. This message should be picked up from the bundle it
belongs to.
I don't want to specify the key value here since I want to message to be
picked based on the request processed.
Regards
Anuradha
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 11:12 AM
To: user@struts.apache.org; [EMAIL PROTECTED]
Subject: RE: Displaying messages from multiple resource bundles
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.:
You would then have to give the key name when using the bean:message
tag:
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:
I have defined both these bundles in struts-config.xml
Regards,
Anuradha S.Athreya
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]