It's not a secret anymore!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt on error-page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt on error-page" Watch "Doubt on error-page" New topic

Doubt on error-page

Vepa Sritej
Ranch Hand

Joined: Jul 31, 2006
Posts: 42
Hello ranchers,

I have a doubt on the usage of <error-page> tag.

Can anyone explain in detail when exactly will an error-page be called? Will it be called for all exceptions or for only the exceptions that extend ServletException or IOException. While I was doing some mock tests i have encountered few questions related to when the error-page will be called. Please help..

tej<br /> <br />SCJP 1.5 --75%<br />SCWCD --89%<br />SCBCD/Web Services!! Yet to Decide
Vepa Sritej
Ranch Hand

Joined: Jul 31, 2006
Posts: 42
Could anyone please answer my question as need to take my exam soon.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

The XML schema states that the exception-type contains a fully qualified class name of a Java exception type.

[My Blog]
All roads lead to JavaRanch
naresh govindaswmay
Ranch Hand

Joined: Aug 15, 2007
Posts: 90
when ever your specific finds an exception that error page is called is not specific to servletException or IOException.

Naresh govindaswamy

Thanks and Regards<br />Naresh govindaswamy
I agree. Here's the link:
subject: Doubt on error-page
It's not a secret anymore!