Hello,

I posted this on tomcat-user, without any reply.  It seems to be a bug, so I
hope it's relevant on this list.

-Chris

----- Original Message -----
From: "chris brown"
To: "tomcat-user"
Sent: Thursday, March 14, 2002 3:52 PM
Subject: request.getLocale() always returns "en_US" ..?!


> Hello,
>
> I'm trying to use the method "getLocale()" on HttpServletRequest
objects...
> however, it always seems to return "en_US"!  This is despite my browser
> sending "fr,en-gb;q=0.5" as the "accept-language" header! (I've checked
this
> last point by calling request.getHeader("Accept-Language"), including
> several variations (upper & lower case, for example).  I can always get
the
> correct value back, but Tomcat 4.0.1 always returns "en_US".
>
> Is this a bug?  Or am I missing something?
>
> For info., I've tried this on IE6.0 and Mozilla 0.9.8 .  Both with
> appropriate language settings, both get picked up as "en_US", despite
> correctly-specified values in the "accept-language" headers.
>
> - Chris B.




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

Reply via email to