title: Redirect from index page in Spring and Tomcat
body: <p>I have a Spring application, which is running on Tomcat say at: <a href="http://example.com/foo/" rel="nofollow">http://example.com/foo/</a></p>
  
  <p>DisplatcherServlet is mapped to app/*, for example, index page is:</p>
  
  <pre><code>http://example.com/foo/app/index.html
  </code></pre>
  
  <p>This is so because I have other servlets (for HttpRequestHandlers), e.g. mapped to service/*. This scheme is convenient to use because this way app/ and service/ can have different security settings.</p>
  
  <p>What I want is <a href="http://example.com/foo" rel="nofollow">http://example.com/foo</a> to redirect to <a href="http://example.com/foo/app/index.html" rel="nofollow">http://example.com/foo/app/index.html</a>.</p>
  
  <p>How do I achieve this?</p>