title: Servlet mapping to default / in tomcat
body: <p>I am using an external program that knows to send requests only to localhost:8080/</p>
  
  <p>Is it safe to define the my servlet like this:</p>
  
  <pre><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;default&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>Since also tomcat default servlet is mapped to it. I am using tomcat 7.</p>
  
  <p>What is the priority of the servlets? If I have mapping to /resources/* and *.jsf and the URL is like this localhost:8080/resources/test.jsf - what will be invoked?</p>