| Author |
Can someone help me in this whether is this possible ?
|
manoj ravindran
Greenhorn
Joined: Feb 02, 2012
Posts: 2
|
|
Hi all,
here I want to ensure that a page is target of another page's errorPage Directive ?
as far as to my knowledge in JSP i know the errorPage Directive has a URL value in which the exceptions are sent to it
for instance,
<%@ page errorPage="xxx.jsp" %>
but i have two options to choose the correct one as in the given Question i should have to use this JSP tag <%@ page errorPage="xxx.jsp" %>
but i have 2 options such as the followings
1) <%@ page errorPage="this" %>
2) <%@ page isErrorPage="true" %>
consider the 1st in the above options i think errorPage Directive(1st) would be the correct one for the question asked above ? here in this case can i use
THIS attribute instead of giving URL ? Is this correct to use as the errorPage Directive with the THIS attribute ?
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50693
|
|
No, you are mis-using the errorPage directive. It's not meant for displaying user errors, but rather a page to be invoked when an unexpected error occurs, such as an null pointer.
Also, in modern web apps, this is rarely used. Rather, a central error handler is declared in the deployment descriptor.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Can someone help me in this whether is this possible ?
|
|
|