• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet  RSS feed

 
Ankush Deshmukh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i get the country name from the user browser
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then only information about the user you can get has to come from the request object. There is a commonly available servlet called SnoopServlet that dumps all of the information found in a request. You can get stuff like the "Locale" and the remote host, but no absolute identification of the country the user is calling from.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!