This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt on error-page" Watch "Doubt on error-page" New topic
Author

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
hi,
when ever your specific finds an exception that error page is called up.it is not specific to servletException or IOException.

Ragards
Naresh govindaswamy


Thanks and Regards<br />Naresh govindaswamy
 
Consider Paul's rocket mass heater.
 
subject: Doubt on error-page
 
Similar Threads
doubt in session
doubt!!
Exception doubt
doubt
Doubt on RequestDispatcher