Ben,

> With this setup requests that start with /error go to the testerror
> servlet, all other requests go to the test servlet.

Just a guess, but I would try putting this catch-all servlet mapping:

    <servlet-mapping>
       <servlet-name>test</servlet-name>
       <url-pattern>/</url-pattern>
   </servlet-mapping>

at the end of the mappings. Or at the beginning if that doesn't work.
I'm guessing that Tomcat keeps these mappings as a list and iterates
over them looking for a match. Maybe the first match wins?

If you think about this like a switch statement, your catch-all case
should be at the bottom of the list.

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to