title: URL rewrite in jsp remove the extn java
body: <p>When I run my program link which is generated.</p>
  
  <p><strong><a href="http://localhost:8084/urlrewrite_program/newjsp.jsp" rel="nofollow">http://localhost:8084/urlrewrite_program/newjsp.jsp</a></strong></p>
  
  <p>I want to remove the .jsp in this link like</p>
  
  <p><strong><a href="http://localhost:8084/urlrewrite_program/newjsp" rel="nofollow">http://localhost:8084/urlrewrite_program/newjsp</a></strong></p>
  
  <p>I Have create WEB-INF/web.xml, using the code which is here below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" 
  "http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd"&gt;
  &lt;urlrewrite&gt;
  &lt;rule&gt;
  &lt;from&gt;/urlrewrite_program/newjsp.jsp(.*)&lt;/from&gt;
  &lt;to type="forward"&gt;/newjsp&lt;/to&gt;
  &lt;/rule&gt;
  
  &lt;outbound-rule&gt;
  &lt;from&gt;^/?([a-z]+)(.(jsp|jspx))$&lt;/from&gt;
  &lt;to&gt;$1&lt;/to&gt;
  &lt;/outbound-rule&gt;
  &lt;/urlrewrite&gt;
  </code></pre>
  
  <p>But this is not working.</p>