File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Recognizing the Language preference of the user

 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to know the language preference of the client browser (cookies are enabled),and among the two options i.e. request attribute ACCEPT_LANGUAGE or cookies which one is better? Is the request one better as it won't be needed to persist them ? or any other way
Thanks
-Varun
[ December 18, 2002: Message edited by: varun Khanna ]
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to get a user accepted language you can use
request.getHeader("Accept-Language")
i didn't get your questions about cookies...
 
Varun Khanna
Ranch Hand
Posts: 1400
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across cookie called cllang, though I don't know much about it.
-Varun
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic