wood burning stoves 2.0*
The moose likes JSP and the fly likes Can someone help me in this whether is this possible ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Can someone help me in this whether is this possible ?" Watch "Can someone help me in this whether is this possible ?" New topic
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61314
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: Can someone help me in this whether is this possible ?