This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60800
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can someone help me in this whether is this possible ?
 
Similar Threads
jsp error page from servlet
<error-page> tag mechanism
Doubts In IBM 287 Questions
the answer is not right?
How to determine page type