Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting the previous page url

843833Sep 29 2001 — edited Oct 4 2001
In a JSP page, how to get the previous page's URL (the page which referred this JSP page). In javascript, <b>document.referrer</b> meets this requirement only if the page comes using <B>anchor tag</b>. If we change the URL using <b>location.href</b>, it doesn't work! Is there way to get the URL of the referrer in JSP, servlet or in javascript?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2001
Added on Sep 29 2001
2 comments
605 views