File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Can you get client location from HttpServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Can you get client location from HttpServletRequest" Watch "Can you get client location from HttpServletRequest" New topic
Author

Can you get client location from HttpServletRequest

Ronwaldo Cruz
Ranch Hand

Joined: Oct 17, 2006
Posts: 69
Hi.

Is it possible to get client location information from HttpServletRequest? Sort of like how google knows which location I am from just by typing http://www.google.com and then it changes to http://www.google.com.ph
Sravan Kumar
Ranch Hand

Joined: Sep 11, 2005
Posts: 121
ServletRequest.getRemoteXXX() methods should help you out.


keep smilin :: sravan<br /><a href="http://sravanpens.blogspot.com" target="_blank" rel="nofollow">I scribble here</a>
Sravan Kumar
Ranch Hand

Joined: Sep 11, 2005
Posts: 121
getLocale() and getLocales() in ServletRequest will give you the accepted locales.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can you get client location from HttpServletRequest
 
Similar Threads
UA #1...... URL association
CPAN for Java?
Tutorials on web service (SOA) architecture and web service security
secure application (memory encription)
javax.net.ssl.SSLException: error while writing to socket