Re: Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-28 Thread Kris Schneider
Quoting Andreas Schildbach <[EMAIL PROTECTED]>: > Kris Schneider wrote: > > > You may also need to override HttpServletRequestWrapper.getHeaders so that > it > > returns a non-empty Enumeration for the Accept-Language header. In other > words, > > always make JSTL think that the client has suppli

Re: Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Andreas Schildbach
Kris Schneider wrote: You may also need to override HttpServletRequestWrapper.getHeaders so that it returns a non-empty Enumeration for the Accept-Language header. In other words, always make JSTL think that the client has supplied the header. JSTL should then use ServletRequest.getLocales for the

Re: Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Kris Schneider
You may also need to override HttpServletRequestWrapper.getHeaders so that it returns a non-empty Enumeration for the Accept-Language header. In other words, always make JSTL think that the client has supplied the header. JSTL should then use ServletRequest.getLocales for the list of preferred loca

Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Andreas Schildbach
Hello everyone, for the i18n of my web application, I have written a servlet filter that implements the following model: - if the user or guest has selected a language from the navigation menu, use it (it is stored in the users HttpSession). - else if the user is logged in use his/her language