File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you get client location from HttpServletRequest

 
Ronwaldo Cruz
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletRequest.getRemoteXXX() methods should help you out.
 
Sravan Kumar
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getLocale() and getLocales() in ServletRequest will give you the accepted locales.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic