aspose 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 Spring in Action this week in the Spring 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