Getting the previous page url
843833Sep 29 2001 — edited Oct 4 2001In 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?