RE: Using errorPage

2002-03-05 Thread Peter Lewandowski

Is there any way to redirect on exceptions thrown when a page is compiles by
tomcat??

/Peter
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Sent: den 5 mars 2002 16:07
> To: Tomcat Users List
> Subject: AW: Using errorPage
> 
> 
> If the exception is thrown after the first bytes have been 
> sent to the browser you won't get redirected to the error 
> page.
> 
> The bytes are sent when the output reaches the buffer size.
> (AFAIK 8K per default)
> 
> > -Ursprüngliche Nachricht-
> > Von: Peter Lewandowski [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 5. März 2002 15:34
> > An: 'Tomcat Users List'
> > Betreff: Using errorPage
> 
> > 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? 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Using errorPage

2002-03-05 Thread Peter Lewandowski

Yes , I'm throwing an exception. A nullPointerException.

/Peter

> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: den 5 mars 2002 15:13
> To: 'Tomcat Users List'
> Subject: 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:[EMAIL PROTECTED]]
> > 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:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Using errorPage

2002-03-05 Thread Randy Layman


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:[EMAIL PROTECTED]]
> 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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: