In any JSP which is made eligible for catching exceptions then it must have a mention to error page in @page directive,something like:
<%@ page errorPage="ErrorHandling.jsp" %>
The error page, in this case ' ErrorHandling.jsp', has 'isErrorPage' attribute in page directive which should be set to true. When a JSP page has been declared an errorPage, it is made available an object with name of "exception" of type java.lang.Throwable.


0 comments:
Post a Comment