Title: RE: Getting the Locale from the Browser

Enumeration e = request.getHeaderNames()

while (e.hasMoreElements())
{
        String KeyValue = (String) e.nextElement();
      if (KeyValue.equals("Accept-Language")
        // e.getHeader(KeyValue) is the locale, ie, en-us
}

-----Original Message-----
From: Ian Holsman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 27, 1999 1:19 PM
To: [EMAIL PROTECTED]
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

Reply via email to