aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes errorPage Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "errorPage" Watch "errorPage" New topic
Author

errorPage

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 ?


1.DD


2. errorPage.jsp


3.arithmeticError.jsp



4.badPage.jsp (which throws ArithmeticException)



SCJP 5.0(100%)
Preparing for SCWCD
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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 ?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: errorPage
 
Similar Threads
Problem configuring Error Page
Why the exception in my error page is null when error comes from a servlet?
problem while declaring error page
pageContext.exception is not executing
error pages in dd