Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[Problem] Define Error Codes in web.xml

843841Nov 24 2005 — edited Sep 25 2006
Hi everybody!

What I want to do is very simple to explain:

For our web-application I have designed a global error pages, that should appear, whenever an error occurs. Not matter if it is an 500 a 404 or a 202. Always the same page, that does the processing of the error in the background.

In the web-xml if defined it like this: (for example for a 500 error)
<error-page>
      <error-code>500</error-code>
      <location>/global_error_page.jsp</location>
</error-page>
Now I want to alter the web.xml in a way, that this error page is called for all possible error-codes, without writing a whole block for each error-code.
For some reason <error-code>*</error-code> does not work.

And ideas, suggestions?

Thanks in Advance!
Stef
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2006
Added on Nov 24 2005
5 comments
156 views