Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Filters and ErrorPages  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!