File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Browser Locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Browser Locale" Watch "Browser Locale" New topic

Browser Locale


Joined: Aug 16, 2001
Posts: 24
Does anyone know how to get the Locale of a web browser?

Manjunath Subramanian
Ranch Hand

Joined: Jul 18, 2001
Posts: 236

Try the getLocales() method declared in the ServletRequest interface and defined in the HttpServletRequest class.This method returns a Enumeration of all the attributes.
Hope this helps,
I agree. Here's the link:
subject: Browser Locale
It's not a secret anymore!