Problem solved!
It was all a programming error. We added session.invalidate() after the
setLocale. That made the default Locale to be used.
Good to know that setLocale(myRequest, locale) doesn't set the myRequest
locale (as I assumed), but the Globals.LOCALE_KEY object in the session.
Thanks for t
I recently used with locale in the way you're describing, and
it picked up the locale that's set as Globals.LOCALE_KEY. If you want, you
can get the code in http://www.rabago.net/struts/formdef/downloads.htm. Look
for the locale.war sample app.
Hubert
--- Hernan Soulages <[EMAIL PROTECTED]> wr
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
in the JSPs. I thought setLocale() did the
trick. How do I set de Locale for th
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
OK. At least I know you got the message. Hope somebody has an idea,
because I'm really lost!
> Option (c) - but that's just in my case..:)
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Option (c) - but that's just in my case..:)
> -Original Message-
> From: Hernan Soulages [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: setLocale 2.0
>
>
> I sent a message asking about a problem with setLocale. Since
> I haven't
>
6 matches
Mail list logo