my dog learned polymorphism
The moose likes Servlets and the fly likes Filters and ErrorPages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filters and ErrorPages" Watch "Filters and ErrorPages" New topic

Filters and ErrorPages

Nils Tegtmeier

Joined: May 06, 2002
Posts: 1
Hi there,
I have defined a response filter for my web app (to uniformly add some information to all responses) and an error page for ServletExceptions which points to another servlet dedicated to handling exceptions.
When an exception occurs, the response generated by the ErrorHandlerServlet does not get filtered, although I have defined a <filter-mapping> for the ErrorHandlerServlet.
Is error handling no subject to filtering by specification (haven't found anything on this yet)? Have I forgotten something?
Any hint appreciated
I agree. Here's the link:
subject: Filters and ErrorPages
It's not a secret anymore!