Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Browser Locale" Watch "Browser Locale" New topic
Author

Browser Locale

June
Greenhorn

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

JQ
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,
Manjunath
 
 
subject: Browser Locale
 
Similar Threads
how to get client country name?
Struts Internationalization Issue with Arabic
How to set the locale in JSR 168 API portlet?(using wps 6.1)
fmt: tag
Servlet headers