i18n Spring MVC
Posted
by Enrique
on Stack Overflow
See other posts from Stack Overflow
or by Enrique
Published on 2009-10-28T02:18:54Z
Indexed on
2010/03/18
1:51 UTC
Read the original article
Hit count: 382
spring-mvc
|internationalization
Hello.
I want to use SessionLocaleResolver to get the locale from user session.
The documentation says this:
"Another option of resolving locales is by SessionLocaleResolver. It resolves locales by inspecting a predefined attribute in a user’s session. If the session attribute doesn’t exist, this locale resolver will determine the default locale from the accept-language HTTP header."
But it does not say which attribute do I have to put in session. Y tried saving in session an attribute "lang" with value "en" but it did not work. Anybody knows which attribute do I have to save in session (key,value)?
© Stack Overflow or respective owner