ct: Re: Strange error-page behavior
>
>
> I've found that the 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.
>
>
Neil Aggarwal wrote:
I am using Tiles to construct the site. I set the page buffer on my
layout page and the content page to a large value and I still get
the IllegalStateException. Does the tiles:insert tag cause a problem?
Hmm, maybe Tiles is fluching the response somewhere along the line..
I've found that the 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
directives, which breaks if the response is
Laurie:
> The problem is that by the time the error occurs in your JSP, the
> response has already been committed. When Tomcat tries to issue the
> redirect to the error page, it fails. Your only recouse is to increase
> the size of the response buffer. To be robust, the buffer would need to
>
ness can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, June 24, 2005 7:32 PM
To: user@struts.apache.org
Subject: Re: Strange error-page behavi
can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Friday, June 24, 2005 7:32 PM
To: user@struts.apache.org
Subject: Re: Strange error-page behavior
more in 6 months or less! http://newsletter.JAMMConsulting.com
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
> Sent: Friday, June 24, 2005 7:32 PM
> To: user@struts.apache.org
> Subject: Re: Strange error-page behavior
>
>
>
ruts Users Mailing List
Subject: Re: Strange error-page behavior
From: "Neil Aggarwal" <[EMAIL PROTECTED]>
The reason I need to execute code is for me to send an error report
to the site admin.
Have you tried using an actual file (.jsp or .html) that does
nothing but
forward
business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 24, 2005 6:53 PM
> To: Struts Users Mailing List
> Subject: Re: Strange erro
From: "Neil Aggarwal" <[EMAIL PROTECTED]>
> The reason I need to execute code is for me to send an error report
> to the site admin.
Have you tried using an actual file (.jsp or .html) that does nothing but
forward or redirect to the Struts action? Or perhaps... can you just call
the whatever-se
! http://newsletter.JAMMConsulting.com
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 24, 2005 6:40 PM
> To: Struts Users Mailing List
> Subject: Re: Strange error-page behavior
>
>
> From: "Neil Aggarwal" <
From: "Neil Aggarwal" <[EMAIL PROTECTED]>
> I have this directives in my web.xml file:
>
>
> java.lang.Throwable
> /error.do
>
Having dealt with this recently, I'm fairly sure the has to be
something that the container can actually locate, read, and send out to the
browser.
I can't
Hello all:
I have this directives in my web.xml file:
java.lang.Throwable
/error.do
This is supposed to invoke this action in the struts config file:
The page.error outputs a generic error page.
When I throw an exception from an action class, it works a
13 matches
Mail list logo