thx a lot it seems to be exactly what I need Francois Rouxel 
www.rendezvouscentral.com 


-------- Original Message -------- 
Subject: Re: getText 
From: Okan_Özeren_[via_Struts] 
< ml-node+4271219-775331120-194...@n5.nabble.com > 
Date: Wed, March 30, 2011 6:40 am 
To: " franc...@rendezvouscentral.com " < franc...@rendezvouscentral.com > 

 Hi, Sometimes I use this method for getting a value of key from multilanguage 
resource bundles with localized which I want. Below method is into the 
*LocalizedTextUtil* class  and * com.opensymphony.xwork2.util* package and 
*xwork-core-*.jar* which library you need as struts2 libraries depended.   
 /**     * Returns a localized message for the specified key, 
aTextName.  Neither the key nor the     * message is evaluated. 
    *     * @param aTextName the message key     
* @param locale    the locale the message should be for     
* @return a localized message based on the specified key, or null if no 
localized message can be found for it     */    public 
static String findDefaultText(String aTextName, Locale locale); I hope this is 
usefull for you, Okan Özeren. On Wed, Mar 30, 2011 at 1:26 AM, [hidden email]  
< [hidden email] > wrote: > Hi Everybody > is there a way to use 
getText in an action and specify the locale (I mean , > I don't want struts 
to use the getLocale() from the browser) ? > > something like that 
getText('my.ref',myLocale); > > thx a lot > > -- > View this 
message in context: 
http://struts.1045723.n5.nabble.com/getText-tp4270294p4270294.html > Sent 
from the Struts - User mailing list archive at Nabble.com . > > 
--------------------------------------------------------------------- > To 
unsubscribe, e-mail: [hidden email]  > For additional commands, e-mail: 
[hidden email]  > >      If you reply to this email, your message will be 
added to the discussion below:  
http://struts.1045723.n5.nabble.com/getText-tp4270294p4271219.html    To 
unsubscribe from Struts, click here . 



--
View this message in context: 
http://struts.1045723.n5.nabble.com/getText-tp4270294p4271312.html
Sent from the Struts - User mailing list archive at Nabble.com.
  • getText franc...@rendezvouscentral.com

Reply via email to