wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt with error page config in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt with error page config in DD" Watch "Doubt with error page config in DD" New topic
Author

Doubt with error page config in DD

raghu dubey
Ranch Hand

Joined: Jul 05, 2007
Posts: 72
Hi,

I may be trying to relate things to Core java here, but still I have a doubt.

If I have configured 2 error pages using the <exception-type> element, the first one is a Exception, and the second one is an ArithmeticException error page.

Does their order matters like it does in handling exceptions in java classes?

I mean do i need to have more specific error pages(say for ArithmeticException) in the DD than the general ones like for Exception object.


Thanks,<br />Raghu.<br /> <br />SCJP 5, SCWCD 1.4, NCFM
Phani Burra
Ranch Hand

Joined: Dec 13, 2007
Posts: 52
The first error page element that matches the exception is called. Yes order is important.
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

The order of exception in error-page is not important. The closest match will be selected.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
raghu dubey
Ranch Hand

Joined: Jul 05, 2007
Posts: 72
I am confused a little.

But I was reading the Miklai Zalkin's notes and it says the closest match wins, so order should not be needed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt with error page config in DD