Not sure I totally understood your response, but I looked up the directive
you mentioned.  Here's what I learned:

Purpose
-------
- Indicates whether or not the current page can act as the
error page for another JSP page

Notes
-----
1. Use this for emergency backup only; explicitly handle as
many exceptions as possible
2. The web.xml file can designate general error pages rather
than page-specific ones like this

According to item #2, I shouldn't have to do this.  Furthermore, this means
each JSP within my application needs the following:

<%@ page errorPage="error.jsp" %>

This is what I'm trying to avoid.  I would prefer to only specify this via a
single configuration setting in the web.xml.

JOHN

-----Original Message-----
From: Jimmy Emmanual [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 1:05 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] web.xml <error-page> configuration problem


Is you /jsp/error.jsp page a error page?

If not it as the Error Page via.

<%@ page isErrorPage="true" %>

Jimmy

-----Original Message-----
From: Hohlen, John C [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 1:59 PM
To: Struts-User (E-mail)
Subject: [OT] web.xml <error-page> configuration problem


I'm using WebLogic 6.1 SP 2 and I can't get the web.xm. <error-page>
configuration to work for exceptions occurring within a JSP.  If the
exception, occurs in Java code (i.e. non-JSP), the error page works fine.
But if it occurs in the JSP, I see a stack trace on the screen instead of
forwarding to the error JSP.  Here's the setting I have in web.xml file:

  <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/jsp/error.jsp</location>
  </error-page>

This should handle every type of exception, right?  In my JSP, I'm
intentionally creating a null pointer exception.  I also tried adding the
following to my web.xml file and it still didn't work:

  <error-page>
    <exception-type>java.lang.NullPointerException</exception-type>
    <location>/jsp/error.jsp</location>
  </error-page>

Any help is greatly appreciated,

Thanks,

JOHN HOHLEN 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to