File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet" Watch "Servlet" New topic


Ankush Deshmukh

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

Joined: Mar 22, 2000
Posts: 13027
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.
I agree. Here's the link:
subject: Servlet
It's not a secret anymore!