title: Jsp serverlet mapping url-pattern /* overrides the welcome-file
body: <p>I'm building a site on Google app engine with Java.
  There I'm trying to map jsp pages with servlet mapping as follows:</p>
  
  <p><code>http://localhost:8080/&lt;any text&gt;</code> should map to <code>r.jsp</code></p>
  
  <p><code>http://localhost:8080</code> should map to <code>home.jsp</code></p>
  
  <p><em>But those two urls always get mapped to <code>r.jsp</code>.</em> </p>
  
  <p>And my web.xml is as follows:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;r&lt;/servlet-name&gt;
      &lt;jsp-file&gt;/r.jsp&lt;/jsp-file&gt;
      &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;r&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;home&lt;/servlet-name&gt;
      &lt;jsp-file&gt;/home.jsp&lt;/jsp-file&gt;
      &lt;load-on-startup&gt;0&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;home&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;home.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p></p>
  
  <p>I also tried <code>&lt;url-pattern&gt;""&lt;/url-pattern&gt;</code> instead of <code>&lt;url-pattern&gt;/&lt;/url-pattern&gt;</code> and it also did not work </p>
  
  <p>Any <strong>servlet mapping solution</strong> for this?</p>