Hi,
use request.getLocale() in the Servlet 2.2 API.
If you're stuck with 2.1 or less then try to parse
the Accept-language header, this wont take
care of logged in users preferences (overriding
the browser's preferences) and similar things
though.

Good luck!

/Magnus Stenman, the Orion team
http://www.orionserver.com

----- Original Message -----
From: Ian Holsman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 1999 8:19 PM
Subject: Getting the Locale from the Browser


> hi.
> I would like to get the locale of the user's browser in order to do
> language specific stuff.
> how do I do this ???
>
> Thanks
> Ian.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to