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?
Thanks.