We ran across the same problem a few months ago.

The ActionSerlvet sets the current locale in the session when the first
action is called.  Thereafter, the processLocale() function retrieves it
out of the session, rather than checking if the locale has changed.
We chose to over-ride the processLocale function.  If we are running in
debug mode, the locale is retrieved from the request and reset in the
session for each action.  This allows us to test language translation
much easier/faster.
However, there is another method.

IE (and I am pretty sure Netscape) store one session.  So if you have
multiple browser sessions running, they will all use the same session.
Likewise, the session will not be removed from memory unless ALL browser
sessions are closed.  This means that if you start IE with Engish as
your preferred language, then Struts sets the language in the session to
be english (after the first action is called).  You will not see your
language change (even though you changed it in the browser) until you
restart IE.  This will force the session to be closed, and a new one
started.  On the next action, the locale should be set to the new
language (French).

I hope this helps,

    Pete
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif"><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain
adr:;;;;;;
version:2.1
end:vcard

Reply via email to