• 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: 9597
36
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 ?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!