This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes errorPage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "errorPage" Watch "errorPage" New topic


nisha chidella
Ranch Hand

Joined: Jul 24, 2008
Posts: 57
In my DD i have errorpage declaration for both ArithmeticException and Throwable. when an ArithmeticException is thrown, it is always going to the jsp that is declared for Throwable. shouldn't it call the page that is declared for ArithmeticException ?


2. errorPage.jsp


4.badPage.jsp (which throws ArithmeticException)

SCJP 5.0(100%)
Preparing for SCWCD
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

I think this is happening because the default try catch mechanism of JSP page wraps your ArithmeticException into a JasperException...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
nisha chidella
Ranch Hand

Joined: Jul 24, 2008
Posts: 57
so, does this happen only in Tomcat ?
subject: errorPage
It's not a secret anymore!