• Post Reply Bookmark Topic Watch Topic
  • New Topic

Obtaining the referring URL...  RSS feed

 
Dave Hewitson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a jsp that's called from other pages, being served from other servers.
I want to be able to return to the URL which invoked my page when the user has finished.
Is there a way I can get hold of the absolute path of the referer?
Thanks
Dave
 
Dave Hewitson
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found it!
request.getHeader("referer");
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!