Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can someone help me in this whether is this possible ?

 
manoj ravindran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic