• Post Reply Bookmark Topic Watch Topic
  • New Topic

Explicit exception-type in DD  RSS feed

 
Kathiresan Chinna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

This is the configuration in DD

<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/ArithmeticError1.jsp</location>
</error-page>

<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/ErrorPage1.jsp</location>
</error-page>

If a Servlet throws ArithmeticException then browser receives ArithmeticException.jsp
But, if JSP throws ArithmeticException then browser receives ErrorPage1.jsp

If I remove the <exception-type> java.lang.Throwable declaration from DD
then browser receives ArithmeticException.jsp

Is there anything wrong in declaration or order ?

Thanks
Kathir
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember an old thread about this. Check it out.
 
Kathiresan Chinna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it, Thank you
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!