title: Redirect all requests for a subdirectory in Tomcat 6.0
body: <p>I'm running a local Tomcat 6.0 server on my desktop.</p>
  
  <p>I'm trying to redirect any and all requests matching <a href="http://localhost:8080/RedirectDirectory/abc/efg/morejunk" rel="nofollow noreferrer">http://localhost:8080/RedirectDirectory/abc/efg/morejunk</a> to a single JSP page.</p>
  
  <p>In my RedirectDirectory project's web.xml I have </p>
  
  <pre><code>&lt;servlet&gt;
  &lt;servlet-name&gt;IOPRedirect&lt;/servlet-name&gt;
  &lt;jsp-file&gt;/RedirectDirectory/filetree.jsp&lt;/jsp-file&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;IOPRedirect&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/RedirectDirectory/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I would really like it to go to that JSP whether the directory exists or not. </p>
  
  <p>I thought this is how to do it, but I guess not. </p>
  
  <p>Any ideas? </p>
  
  <p>Thanks</p>