From: "Didier McGillis" <[EMAIL PROTECTED]>
> Have you tried this.
> WEB_INF/web.xml
> <error-page>
> <error-code>403</error-code>
> <location>/errorpages/403.jsp</location>
> </error-page>
Based on his other post, Soren has tried that, and I have a similar problem
with <exception-type> (he's using <error-code>). I'm on Tomcat 4.1, Java
1.5, HP-UX 11.
I have this in web.xml:
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/WEB-INF/jsp/exceptionServlet.jsp</location>
</error-page>
But when I throw a Servlet Exception from my code, I see the usual error
page instead of the JSP I've specified.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request
exception
javax.servlet.ServletException: No data found in the HOLD file under key ...
Is anyone successfully using <error-page>? What are we doing wrong?
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]