Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error-page in DD

 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All ,

When I have


everything works ok . When ArithmeticException is genereated in my Test.jsp , The response is coming from ArithmeticExceptionGenrerated.jsp


But if I put both of the following in DD , i always get the response from
ExceptionGenrerated.jsp . This is happening even in the case of ArithmeticExceptions . THis is not What I expected for ArithmeticExceptions ( Refer HFS&JSP by page 460 B&K&B)




I am using TomCat 6.0.14
 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have faced the same problem..
is it like <exception-type>java.lang.Throwable</exception-type> is a catch-all defined in the DD ?
 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AnyOne Please explain Superclass SubClass relationship in the <exception-type.
Is it similar to exception catching in Java?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remember that it has been discussed in the past. Please look at this old thread
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic