I would like to have a filter invoked when ever a request comes in that does not represent a valid page/url (404's). What we are doing now is mapping the error-code to a jsp page that redirects via <c:redirect url="unknown.req"> (see code below) but of course that is another round trip and therefore not optimal.
Code: <filter-mapping> <filter-name>routerRedirectInputFilter</filter-name> <url-pattern>/unknown.req</url-pattern> </filter-mapping> ..... <error-page> <error-code>404</error-code> <location>/rr.jsp</location> </error-page> I have tried replacing the c:redirect with a jsp:forward but this does not invoke the filter. I suspect this is not possible with v2.3 but might be with v2.4. Thoughts? __________________ Jeff Boring -- View this message in context: http://www.nabble.com/How-to-apply-filter-to-404%27s-in-servlet-2.3--tf4261634.html#a12127511 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]