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, franc...@rendezvouscentral.com < franc...@rendezvouscentral.com> 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: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >