you could try using the JSP error directive too 

<%@ page errorPage="MyErrorPage.jsp" %>
<HTML>
<HEAD><TITLE>Test Error Page</TITLE></HEAD>
<BODY>
<H2>Throw Exception!</H2>
<% String nullString = null; %>

<!-- Ooops -->
<% nullString.length(); %>

</BODY>
</HTML>

-----Original Message-----
From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED]
Sent: 06 February 2004 07:28
To: Tomcat Users List
Subject: Re: Errors not going to <error-page>


Not sure if you can use /WEB-INF/... there.

However, I recall some Tomcat versions ignoring <error-page> in some 
cases. IIRC, it was 4.1.18.

HTH,


Antonio Fiol


Wendy Smoak wrote:

>I'm getting an Status 500 page with this:
>ExceptionConverter: java.io.IOException: The document has no pages.
>
>Even though I have this in web.xml:
>   <error-page>
>      <exception-type>java.io.IOException</exception-type>
>      <location>/WEB-INF/jsp/exceptions/Exception.jsp</location>
>   </error-page>
>
>What did I miss?
>
>  
>



<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com";>www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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

Reply via email to