I don't think using the <error-page> will work.  That was the original crux
of this problem.   Run-time exceptions occuring within a JSP aren't getting
redirected.  Now, I'm back to square 1.  Let me know if you have any other
ideas.

Thanks a lot,

JOHN


-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 2:19 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] web.xml <error-page> configuration problem


>Actually, that doesn't work.  I'm getting an IllegalStateException doing
><%@ page errorPage="/displaySystemError.do" %>
>
>java.lang.IllegalStateException: Cannot forward a response that is already
>committed
>
>I think this is a direct result of using Tiles, right?  A portion of the
>page has already been committed (from the earlier Tiles -- servlets that
>executed).

I think that's right.  So, just set it up in <error-page>.

David



>
>JOHN
>
>-----Original Message-----
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 05, 2003 1:33 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [OT] web.xml <error-page> configuration problem
>
>
>You could point your <error-page> to a redirected Struts action so that it
>doesn't show up in a tile.
>
>David
>
> >David:
> >
> >     When I add the errorPage directive to my JSP, my error page appeared
> >in
> >the screen b/c I'm using Struts Tiles.  The page in which I'm creating a
> >null pointer exception is actually an "inner" tile on my screen.  The
> >functionality that I'm looking for is the ability to forward to separate
> >error screen which doesn't display the stack trace to the user.
> >
> >Thanks,
> >
> >JOHN
> >
> >-----Original Message-----
> >From: David Graham [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, June 05, 2003 1:12 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: [OT] web.xml <error-page> configuration problem
> >
> >
> >Is this at the top of your jsp?
> >
> ><%@ page errorPage="/jsp/error.jsp" %>
> >
> >David
> >
> > >From: "Hohlen, John C" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "Struts-User (E-mail)" <[EMAIL PROTECTED]>
> > >Subject: [OT] web.xml <error-page> configuration problem
> > >Date: Thu, 5 Jun 2003 12:59:26 -0500
> > >
> > >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]
> > >
> >
> >_________________________________________________________________
> >The new MSN 8: advanced junk mail protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >
> >---------------------------------------------------------------------
> >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]
> >
>
>_________________________________________________________________
>Protect your PC - get McAfee.com VirusScan Online
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>---------------------------------------------------------------------
>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]
>

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
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