Seems your right.
(Locale) request.getSession().getAttribute(Globals.LOCALE_KEY);
does give me the Locale I just set. My problem is that I wan't to
programatically set the language for all the aplication, including the
<bean:message key="keyname"/> in the JSPs. I thought setLocale() did the
trick. How do I set de Locale for the bean:message tags?

Thanks
Hernan

> My understanding of it (which could be incorrect) is that
> setLocale(request,
> locale) only sets the locale that Struts uses internally.  It doesn't set
> the
> locale that the request object uses, or any other processes that looks for
> locale in the request object.
> If you somehow need the locale that you've set in this code, call "locale
> =
> (Locale) request.getSession().getAttribute(Globals.LOCALE_KEY);" in Struts
> 1.1, or "RequestUtils.getUserLocale(request, null);" in 1.2.
>
> Hubert


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

Reply via email to