About the session : store the locale in the session, for easy access in other places than
the portlet.
- from the login.jsp, to have a i18n login page
- in other jsp or jsf pages
or to have the current choosen localed store somewhere global, if the user does not allow
the cookie.
I have not used it really yet, but when storing the locale in a cookie, i anticipated this
and store it also in the session.
for the login.jsp, I will soon...
About the HttpServletRequest and Response :
- for the session
- for setting and retrieving a cookie.
cookie to store the locale, from one visit to another.
I am not keen on using this, as it is not JSR-168 compliant, but... is there a compliant
way ?
(working on two portal projects, different companies, both need i18n... and locale stored
between two visits).
may be with a servlet wrapper and playing with a parameter to trigger the work ?
or with an interceptor on the portlets or the portal container ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029525#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...