Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet

 
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: 13058
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic