Could it be that you are looking for I18nInterceptor? http://struts.apache.org/2.x/docs/i18n-interceptor.html
Ray Clough schrieb: > The first page of my app is a Login page. Every other page is correctly > localized, because the app gets the user's preferred locale from a DB, and > Struts handles it, but until they have logged in the DB is not available. I > want it to be localized from cookies. I created a filter which intercepts > the requests, gets the cookie from the request, and creates a Locale object > for that language. The cookie was stored when the user selected a Locale in > a previous session. The question is, where do I store this locale so that > it is available to the login page. I looked into the source code for the > ActionContext class, LocaleProvider class, etc, and it seems like this code > should work, but it doesn't: > ActionContext.getContext().put(ActionContext.LOCALE, locale); > > Any help or advise will be greatly appreciated. > > Thank you, > Ray Clough > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]