This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

errorPage

 
nisha chidella
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is happening because the default try catch mechanism of JSP page wraps your ArithmeticException into a JasperException...
 
nisha chidella
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so, does this happen only in Tomcat ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic