Hello All,
I'm running a local Tomcat 6.0 server on my desktop.
I'm trying to redirect any and all requests matching http://localhost:8080/RedirectDirectory/abc/efg/morejunk to a single JSP page.
In my RedirectDirectory project's web.xml I have
<servlet>
<servlet-name>IOPRedirect</servlet-name>
<jsp-file>/RedirectDirectory/filetree.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>IOPRedirect</servlet-name>
<url-pattern>/RedirectDirectory/*</url-pattern>
</servlet-mapping>
I would really like it to go to that JSP whether the directory exists or not.
I thought this is how to do it, but I guess not.
Any ideas?
Thanks