File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes how to get IE language setting? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to get IE language setting?" Watch "how to get IE language setting?" New topic

how to get IE language setting?

gino jersey

Joined: May 24, 2005
Posts: 21
Is there a way to programatically determine the language preference in a user's browser (Internet Explorer?)

Paul Clapham

Joined: Oct 14, 2005
Posts: 19553

Where would this program be running? In the browser as an applet? On the server as a servlet? Somewhere else?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3740

If this is a servlet/jsp, use HttpServletRequest.getLocale()

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: how to get IE language setting?