title: <url-pattern> in <servlet-mapping>
body: <p><strong>Case 1</strong></p>
  
  <pre><code>  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;myapp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p><strong>Case 2</strong></p>
  
  <pre><code>  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;myapp&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>If I use case 1 then I dont get any of my pages styled with <code>&lt;link rel="stylesheet" type="text/css" href="${contextPath}/assets/styles.css" /&gt;</code>, but if I use case 2 everything gets styled.</p>
  
  <p>Could someone help me understand why?</p>
  
  <p>Also, could someone tell me which pattern should be used so that I don't have to worry about extensions? Like should I be using <code>/*</code>? The thing is that if I use <code>/*</code> now when I've been using <code>*.do</code> while developing my application, everything seems to be breaking, not only the styles but I don't get any pictures rendered, no JCaptcha and all that has to do with links.</p>
  
  <p>And If I try to send a GET request from a REST Client like <code>http://localhost:8080/myapp/user/1</code> it doesn't work and I need to add <code>.do</code> at the end and send the same request like <code>http://localhost:8080/myapp/user/1.do</code>.</p>
  
  <p>Thanks.</p>