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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: Can you get client location from HttpServletRequest
 
Similar Threads
UA #1...... URL association
secure application (memory encription)
CPAN for Java?
Tutorials on web service (SOA) architecture and web service security
javax.net.ssl.SSLException: error while writing to socket