This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how i can extract the locale or language from http header ? 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 » Engineering » HTML, CSS and JavaScript
Bookmark "how i can extract the locale or language from http header ?" Watch "how i can extract the locale or language from http header ?" New topic
Author

how i can extract the locale or language from http header ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
what is the field that is in http header which shows locale or language ?
from where this field come ?

thanks
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by raminaa niilian:
Hi
what is the field that is in http header which shows locale or language ?
from where this field come ?

thanks


I am not sure, what exactly you are looking for:

But the header for user's language is: Accept-Language

Why are not you using request.getLocale() method??? :roll:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60748
    
  65

Originally posted by rathi ji:

Why are not you using request.getLocale() method??? :roll:


The OP said nothng about using JSP or servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how i can extract the locale or language from http header ?
 
Similar Threads
Accessing Http Header in Spring
how to get client country name?
How to Allow User to Select a Locale
Advanced question (I think)
Internationalization with dropdown