A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Can someone help me in this whether is this possible ?
Joined: Feb 02, 2012
Feb 10, 2012 08:05:47
here I want to ensure that a page is target of another page's errorPage Directive ?
as far as to my knowledge in
i know the errorPage Directive has a URL value in which the exceptions are sent to it
<%@ 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 ?
Author and ninkuma
Joined: Jan 10, 2002
Feb 10, 2012 08:21:59
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
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.
Asking smart questions
Books by Bear
It is sorta covered in the
JavaRanch Style Guide
subject: Can someone help me in this whether is this possible ?
the answer is not right?
Doubts In IBM 287 Questions
How to determine page type
jsp error page from servlet
<error-page> tag mechanism
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013