This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to use Session Agent on Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use Session Agent on Servlet" Watch "How to use Session Agent on Servlet" New topic

How to use Session Agent on Servlet

Ankush Deshmukh

Joined: Dec 12, 2000
Posts: 8
How can i with the help of session agent can get the information about user's country
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I don't really understand what you are asking, but bear in mind that unless a user has manually chosen to tell you which country he is from, there is no way for your application to know. The world-wide-web is indeed world-wide with no idea of where a server machine, a client machine or a user is located.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
jQuery in Action, 2nd edition
subject: How to use Session Agent on Servlet