title: Servlet instances across multiple mappings
body: <p>If one Servlet is mapped twice, using two different names (as shown bellow) how many instances of the Servlet will be created by the container? </p>
  
  <p>One instance or two or it is container dependent?</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;servlet1&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.me.servlet.MyServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;servlet1&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/page1.html&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;servlet2&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.me.servlet.MyServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;servlet2&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/page2.html&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>