Bill:

You are right, when I use the page errorPage directive, I get it
to go to the error page, but when I use the one in web.xml,
that gives me the Internal Error.

Strange.

Thanks for your help,
        Neil


--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -----Original Message-----
> From: Bill Schneider [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, June 26, 2005 5:28 AM
> To: user@struts.apache.org
> Subject: Re: Strange error-page behavior
> 
> 
> I've found that the <error-page> directive in web.xml works 
> only if the 
> error is thrown from an Action, before the JSP is processed.  Putting 
> <%@ page errorPage="/errorPage.jsp" %> in your JSP may help.
> 
> I believe Tomcat always uses RequestDispatcher.forward for 
> <error-page> 
> directives, which breaks if the response is already 
> committed.  But when 
> processing the JSP errorPage directive it may use pageContext.include 
> instead in situations where forward would break.
> 
> -- Bill
> 
> > I tried setting my error page directive to:
> >   <error-page>
> >     <exception-type>java.lang.Throwable</exception-type>
> >     <location>/errorPage.jsp</location>
> >   </error-page>
> > 
> > I am still getting an IllegalStateException.
> > 
> > That seems weird to me.
> 
> ---------------------------------------------------------------------
> 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