title: Redirect / to /index.jsp when deployed to root
body: <p>I am struggling with a webapp deployment in Jetty 6. Previously the the webapp was deployed in <code>/mywebapp</code> and everytime I accessed <code>http://localhost/mywebapp/</code> Jetty directed me to <code>http://localhost/mywebapp/index.jsp</code>.</p>
  
  <p>When I change the <code>contextPath</code> to <code>/</code>, suddenly the redirect behaviour is broken. Instead, Jetty makes an internal forward request.</p>
  
  <p><strong>Does anyone have any input why this is happening?</strong> The <code>DefaultServlet</code> has the following settings:</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;false&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;true&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>