title: get request url in jsp
body: <p>Suppose if I have two jsp pages <em>Page1.jsp</em> and <em>Page2.jsp</em>. And if I call <em>Page2.jsp</em> from <em>Page1.jsp</em>.</p>
  
  <p>How to determine in <em>Page2.jsp</em> that this request has come from <em>Page1.jsp</em>?</p>
  
  <p>I tried using following code in <em>Page2.jsp</em></p>
  
  <pre><code>request.getRequestURL()
  </code></pre>
  
  <p>But it gives me <em>URL</em> of <em>Page2.jsp</em>.</p>