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]