That works.  Thank you very much.

El Jueves, 1 de agosto de 2013 07:43:26 Lukasz Lenart escribió:
> 2013/7/31 Antonio Sánchez <juntandolin...@gmail.com>:
> > At logging out, session is invalidated and redirected page is displayed in 
> > default language.
> >
> > Say: default language: Spanish; current language: English; logging out and 
> > resulted page is in Spanish, but should be English. .
> >
> > This is not working (code in action class):
> >
> >     public String closeSession()  {
> >         Locale currentLocale = ActionContext.getContext().getLocale();
> >         request.getSession().invalidate();
> >         ActionContext.getContext().setLocale(currentLocale);
> >         return SUCCESS;
> >     }
> >
> > How to maintain the current language?
> 
> Redefine redirect to include request_locale parameter, ie:
> <param name="request_locale">${currentLocale}</param>
> 
> and add getter to action with closeSession()
> 
> public String getCurrentLocale() {
>     return CURRENT_LOCALE.toString();
> }
> 
> 
> Regards
> 

Reply via email to