This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Posts: 66186
146
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
Boost this thread!