wood burning stoves 2.0*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can you get client location from HttpServletRequest
 
Similar Threads
javax.net.ssl.SSLException: error while writing to socket
Tutorials on web service (SOA) architecture and web service security
UA #1...... URL association
secure application (memory encription)
CPAN for Java?