struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: Session Values for Action.LOCALE_KEY Change
Date Tue, 10 Sep 2002 21:56:26 GMT
Do you directly link to the index.jsp or go through the controller servlet?  
You say the locale in the session is different on index.jsp, verify that 
you're in the same session between pages.

Hope that helps,
Dave


>From: micael <caraunltd@harbornet.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>Subject: Session Values for Action.LOCALE_KEY Change
>Date: Tue, 10 Sep 2002 14:13:28 -0700
>
>I set the session locale in a language.jsp page with:
>   session.setAttribute(Action.LOCALE_KEY, new Locale(language));
>where language is a return from a form parameter "locale" via:
>    String localeValue = request.getParameter("locale");
>    String language = localeValue.substring(0, 2);
>This works on all pages, except the index.jsp page.  I can set the language 
>variable to ko and the entire site will stay on Korean, but when I go to 
>the index.jsp page, it is back to English.  If I go from the index.jsp page 
>back to the other pages, they stay in Korean.  I am very puzzled.
>
>Any ideas.  I posted this before, but it chopped my code off.
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message