Re: setLocale 2.0

2004-04-23 Thread Hernan Soulages
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

Re: setLocale 2.0

2004-04-23 Thread Hubert Rabago
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

Re: setLocale 2.0

2004-04-23 Thread Hernan Soulages
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

Re: setLocale 2.0

2004-04-22 Thread Hubert Rabago
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

RE: setLocale 2.0

2004-04-22 Thread Hernan Soulages
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

RE: setLocale 2.0

2004-04-22 Thread Geeta Ramani
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 >