title: how to remove extension of a file from jsp
body: <p><a href="http://localhost:8080/pvPreet/index.jsp" rel="nofollow noreferrer">http://localhost:8080/pvPreet/index.jsp</a></p>
  
  <p>Hi all,
    I want to remove extension from the above link. Exactly i want a solution which is applicable for all the jsp files available in my project.
  Right now i am using the below code for this purpose and it is working fine as well but using this code for each and every file is not an good idea. That's why i was looking for an standardize way for this purpose. So please help!</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;index&lt;/servlet-name&gt;
      &lt;jsp-file&gt;/index.jsp&lt;/jsp-file&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;index&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/index&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>