• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on error-page

 
Vepa Sritej
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

I have a doubt on the usage of <error-page> tag.

Can anyone explain in detail when exactly will an error-page be called? Will it be called for all exceptions or for only the exceptions that extend ServletException or IOException. While I was doing some mock tests i have encountered few questions related to when the error-page will be called. Please help..
 
Vepa Sritej
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone please answer my question as need to take my exam soon.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The XML schema states that the exception-type contains a fully qualified class name of a Java exception type.
 
naresh govindaswmay
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
when ever your specific finds an exception that error page is called up.it is not specific to servletException or IOException.

Ragards
Naresh govindaswamy
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!