<bean:message> works without any further help, assuming the struts session
scope locale attribute is set. 

I'm pretty sure that one of the struts example apps is specifically there to
demonstrate the i18n faculties. Have you looked at that?

Paul

> -----Original Message-----
> From: None None [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: How to access a variable message resource bundle from JSP
> 
> 
> Hi again everyone... yesterday, with assistance from some of 
> you folks, I 
> was able to get multiple message resource bundles working to return a 
> Locale-specific error message from one of my Action classes.  
> Very cool.
> 
> Now I'm trying to do the same thing in a JSP.
> 
> Here's my question... in my JSP's, when using <bean:message>, 
> I know that I 
> can specify bundle="en" or bundle="de" and that works, since I have a 
> properties file set up for English and German.  But how can I 
> set the bundle 
> attribute to a variable value?
> 
> In other words, at present I have String in session called 
> countryCode, and 
> it's literally the value EN, DE, or whatever else.  So, is 
> there a way I can 
> plug that string into the <bean:message> tag's bundle attribute?
> 
> Or, is there another method of specifying which of a number 
> of message 
> resource bundle to look in for a specific key that can be varied 
> programmatically?  Or further still, is there specifically a 
> special method 
> to get locale-specific string in a JSP tag, as I am now able 
> to do in my 
> Action classes?
> 
> Thanks all!
> 
> _________________________________________________________________
> MSN Toolbar provides one-click access to Hotmail from any Web 
> page - FREE 
> download! 
> http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to