I'm converting a site over from using Resin 2.1 (which I'm a lot more familiar with than
Tomcat), and I have a question about wildcard mapping. At the moment in the Resin's web.xml file, I have the following:
This basically means that MainServlet will handle all URLs except those matching the
patterns specified. I'm not sure how to do the equivalent in Tomcat. I could easily simplify it so that anything with a suffix other than .jsp is handled by a file
servlet (i.e, treated as a static page), URLs ending in .jsp are handled by the
JSP servlet, and anything without a suffix is handled by MainServlet. How can I accomplish this with Tomcat?
(I should add that if I were designing it from scratch, I would do it the other way round, and ensure that any URLs which needed to be handled by my servlet had an identifiable suffix, but I'm not in a position to do that now, and have to handle whatever is thrown at me).
[ March 16, 2006: Message edited by: Jan Hansen ]