Sean Giles wrote:
Thanks Craig I'm using Jrun 3.0 and downloaded the service pak and the session.setAtttribute(Action.Locale_key,<locale> now seems to be working.A persistent cookie is the only way I can think of to know the user's preference before they log on. In a Servlet 2.3 environment, this would be a perfect task for a Filter, which could examine each request for a persistent cookie, and set the Locale based on that cookie's values if it was not there yet. You could, of course, automatically log the user on as well. In the absence of being able to use Filters, the only thing I can think of would be to create your own specialized version of the <html:html> tag that looked for the persistent cookie and set the locale appropriate, if the cookie was there and the Locale was not set yet. You'd also want to create your own custom subclass of ActionServlet, and override the processLocale() method to do the same thing, in case the initial request was sent to a "*.do" URI instead of to a JSP page. Craig PS: I'm going to segregate the locale setting code in HtmlTag
into a separate method so that it is easier to subclass this class.
|
- JSP probleme Frederic BAGES
- Re: JSP probleme Steven D. Wilkinson
- RE: JSP prob... Frederic BAGES
- RE: JSP ... Justin Kennedy
- RE: JSP ... Frederic BAGES
- Re: JSP ... Steven D. Wilkinson
- Re: JSP ... Craig R. McClanahan
- I18n Sean Giles
- I18N Jefferson Rodrigues de Oliveira e Silva
- i18n Carlos Fernandez
- RE: i18n James Mitchell
- RE: i18n Carlos Fernandez
- RE: i18n micael
- RE: i18n James Mitchell
- RE: i18n Carlos Fernandez