title: How can I catch uri where a request arrive?
body: <p>How can I catch uri where a request arrive? I have a jsp file that it has a form which submit action to myServlet. Also, I have a filter between them. That is: 
  index.jsp --> myfilter --> myServlet.
  Is there any way to know uri or url "index.jsp" into the myfilter?.
  I've tried a lot of ways with nothing results: getRequestURI, getRequestURL show "myServlet" as a uri/url...</p>
  
  <p>Edit:<br>
  Thanks but it doesn't work for me.<br>
  In the filter I have made:</p>
  
  <pre><code>String url = (String)request.getAttribute("javax.servlet.forward.request_uri");&lt;br&gt;
  System.out.println("URL source: "+url);&lt;br&gt;
  --&gt; and the output is --&gt; URL source: null&lt;br&gt;
  </code></pre>