my dog learned polymorphism*
The moose likes Servlets and the fly likes Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet" Watch "Servlet" New topic
Author

Servlet

Ankush Deshmukh
Greenhorn

Joined: Dec 12, 2000
Posts: 8
how can i get the country name from the user browser
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
jQuery in Action, 2nd edition
 
subject: Servlet