Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rathi ji:

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


The OP said nothng about using JSP or servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic