struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike La Budde <mike.labu...@irista.com>
Subject How come the user's Locale is stored in the Session?
Date Thu, 05 Oct 2000 20:14:31 GMT
I noticed that the ActionServlet stores the user's Locale in the session. 
Presumably then all other code would do a 
session.getAttribute(Action.LOCALE_KEY) rather than a request.getLocale(). 
Why is it done this way? (Performance?)

Getting the Locale out of the request allows us developers to switch our 
language preference on the fly and view the same page in a different 
language. Storing it in the session forces us to log out before we will see 
it in a different language....

Thanks,

Mike


Mime
View raw message