my dog learned polymorphism*
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 Spring in Action this week in the Spring 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: 18657

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: 3710

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

My Blog: Down Home Country Coding with Scott Selikoff
jQuery in Action, 2nd edition
subject: how to get IE language setting?