Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml - catching all error-codes at once

Voutilainen Kristian
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It's my first post here so I have to say, that You guys have a very good message board in here!

It helped me a lot in the past.
But now I've a question which could not be answered by using the search option.

Okay, here is the question:

In the web.xml file of my project I'm catching the 404 Page not found errors by using that code:

well that works perfectly.
Now the question is, how can I catch all existing error-codes at once (for example 500, 401, 402, ...)? Is it even possible?
Or must I specify every single error-code in web.xml?

I tried to use the joker, but it did not work:

Thanks for reading!

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic