Suppose if I have two jsp pages Page1.jsp and Page2.jsp. And if I call Page2.jsp from Page1.jsp.
How to determine in Page2.jsp that this request has come from Page1.jsp?
I tried using following code in Page2.jsp
request.getRequestURL()
But it gives me URL of Page2.jsp.