Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Which method in java can return URL of the document that loaded the current document  RSS feed

 
soni lal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Report post to moderator
HI,

I have to get the URL of the document that loaded the current document .

In Javascript there is a method which does this function : document.referrer.
But I need to access this in jsp.

Is there any method in java API which can return the same ??

Please anyone help me. I am struggling with this issue..

Thanks in advance!!!


 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,
There is a HTTP header available knows as "Referer" which you can access on server side using Servlet APIs.

Check this here.


Regards,
Amit
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!