Great attitude yours :-) I'll explain my (simplified) case... I am migrating a struts1 content manager to struts2; maybe I still stick to struts1 concepts but... imagine there are several articles in the users screen. They might be written in different languages; an article language is set in a property in the ArticleEJB, so the view layer doesn't know which language they are written. When the user clicks in an article, if current locale is not the one in that article, I want my action to change the session locale. I might not want to change that locale depending on other article properties. I know this can be done by getting the locale from the article and adding it as a request_locale parameter in the link but I will not always want to change locale, only for some articles. I want that decision to be taken in that Action, not in the view JSP layer or in previous Action.
I am already using the request_locale i18n interceptor aproach in other circumstances, when I know in advance I want to change the locale. It's perfect for that but maybe not for the case exposed. Ignacio -- View this message in context: http://www.nabble.com/How-to-change-locale-inside-an-Action-method-tp21776908p21778002.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org