Thanks, I'll check that out today.  It may not work, as I dumped all the session
attributes but didn't find anything except for the request charset being set.


Rick DeBay

On Fri, 20 Feb 2004 20:05 , Vernon Wu <[EMAIL PROTECTED]> sent:

>This shall help you out.
>
>javax.servlet.jsp.jstl.core.Config
>
>The following two methods:
>
>set(session, Config.FMT_LOCALE, ...);
>get(session, Config.FMT_LOCALE)
>--
>
>--------- Original Message ---------
>
>DATE: 
>From: [EMAIL PROTECTED]>
>To: Tag Libraries Users List [EMAIL PROTECTED]>
>Cc: 
>
>>I agree about the plausability, but JSTL does freeze the charset (which is a
>>little less likely to change).  JSTL could also save the Accept-Language header
>>that it used to come up with the browser locale, and if it changes reset the
>>locale stored in the session.
>>I imagine recalculating the appropriate locale every time isn't optimal.
>>I'm using Java Web Services Developer Pack 1.3, so I think it's a beta version of
>>JSTL 1.1 (does anyone know how to find out?).  Can someone check if JSTL 1.1 GA
>>stores anything for locale in the session?
>>
>>Thanks, Rick DeBay
>>
>>On Fri, 20 Feb 2004 12:13 , Kris Schneider [EMAIL PROTECTED]> sent:
>>
>>>It's plausible that a client may want to change their locale between requests,
>>>so it wouldn't make much sense for JSTL to "freeze" it. Are you asking how to
>>>find out which locale JSTL actually chooses for browser-based locale setting?  I
>>>don't think there's a convenient way to do that, but you can use the methods in
>>>javax.servlet.jsp.jstl.fmt.LocaleSupport to leverage JSTL's locale-determination
>>>logic for message lookups. Hm, the only gotcha is that it looks like you need a
>>>handle to a PageContext instance. Not much good unless you're writing tag
>>>handlers I guess...
>>>
>>>Quoting [EMAIL PROTECTED]:
>>>
>>>> To process a fmt:message tag, JSTL needs to determine the appropriate locale.
>>>> 
>>>> I'm not explicitly setting a locale so that it'll use the browser-based
>>>> approach.
>>>> Once JSTL determines a locale using this method, I was under the impression
>>>> that
>>>> it's supposed to store this in session scope, but I'm only finding a
>>>> request.charset in session scope.
>>>> The spec isn't clear on this, does anyone know how I should get this
>>>> information
>>>> (I need it in an Action class).
>>>> 
>>>> Rick DeBay
>>>
>>>-- 
>>>Kris Schneider [EMAIL PROTECTED]','','','')">[EMAIL PROTECTED]>
>>>D.O.Tech       http://www.dotech.com/>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to