title: welcome-file in web.xml with spring not working?
body: <p>I have setup my spring-mvc servlet to match *<em>.page</em> requests.  I have setup the <em>welcome-file-list</em> in web.xml to be index.page</p>
  
  <p>This works when I go to the root of my webserver:</p>
  
  <p><a href="http://me.com" rel="noreferrer">http://me.com</a> does get redirected to <a href="http://me.com/index.page" rel="noreferrer">http://me.com/index.page</a> correctly.</p>
  
  <p>However, it doesn't redirect when I use subdirectoris:</p>
  
  <p><a href="http://me.com/dashboard" rel="noreferrer">http://me.com/dashboard</a> does <em>not</em> get redirected to <a href="http://me.com/dashboard/index.page" rel="noreferrer">http://me.com/dashboard/index.page</a></p>
  
  <p>Is there any way to get this mapping working?</p>
  
  <p>My web.xml file (extract):</p>
  
  <pre><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.page&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;spring-mvc&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.page&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>My webdefault.xml (from jetty):</p>
  
  <pre><code>    &lt;init-param&gt;
          &lt;param-name&gt;dirAllowed&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;welcomeServlets&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;redirectWelcome&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
  </code></pre>