title: Customize FacesServlet <url-pattern> to get rid of .xhtml extension
body: <p>I have <code>Login.xhtml</code> and <code>Home.xhtml</code>. I configured the url pattern in <code>web.xml</code> as follows</p>
  
  <pre><code>&lt;servlet-mapping&gt;
     &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
     &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;welcome-file-list&gt;
    &lt;welcome-file&gt;Login.xhtml&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>When I run the whole project, the login page <code>URL</code> is like this <code>http://localhost:8080/fran/Login.xhtml</code> , here <code>fran</code> is my project name..</p>
  
  <p>However, I would like it to be <code>http://localhost:8080/fran/Login/</code> instead of <code>http://localhost:8080/fran/Login.xhtml</code>.</p>
  
  <p>How can I achieve this? Is it possible to customize the <code>&lt;url-pattern&gt;</code> for every page to get rid of the <code>.xhtml</code> extension?</p>