You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2002/03/05 15:12:31 UTC

RE: Using errorPage

	I only ask because you don't mention it - are you throwing the
error?  JSPs only route to the error page if the exception is thrown and not
caught during the execution of your page.  If you don't throw it, or you
throw it and catch it, JSP will never see the error.

	Randy


> -----Original Message-----
> From: Peter Lewandowski [mailto:Peter.Lewandowski@cygate.se]
> Sent: Tuesday, March 05, 2002 9:34 AM
> To: 'Tomcat Users List'
> Subject: Using errorPage
> 
> 
> Hi All...
> 
> I'm trying to redirect my jsp pages to a common error page, 
> when ever an
> exception is raised, but with no success :(
> 
> In my jsp page, I define:
> <%@ page errorPage="error.jsp" %>
> 
> and in my error page, I've defined (at the very top of the page):
> <%@ page isErrorPage="true" %>
> 
> In my jsp page I create an exception, but I am never 
> redirected to my error
> page. Have I forgotten anything? Do I have to set something up in the
> configuration files? 
> 
> Thanks
> 
> Best Regards,
> Peter Lewandowski
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>