Hi Russ,
I had the same problem and ended up including the error page in the body
of the tiles layout. This way the user could continue in the app, but be
informed that an error occurred. So, all of my body tiles have an error page
directive. If the error occurs elsewhere (header, menu, footer) I put the
code below in web.xml. If you haven't already you might try using this
method or a combination.....HTHs, Gary
<error-page>
<error-code>404</error-code>
<location>/Error404Page.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/Error500Page.jsp</location>
</error-page>
-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 3:19 AM
To: Struts Users Mailing List
Subject: Re: Error page problems with Tiles
<global-forwards>
<forward name="error" path="/error.jsp" />
</global-forwards>
in your action you can forward to error in the event that something's
gone pear-shaped.
On 19 Feb 2004, at 01:58, Russ Baker wrote:
> I am having a real issue with the way Tiles handles an error page. I
> am
> setting up the following jsp directive in the base layout:
>
> <%@ page language="java" errorPage="/error.jsp" %>
>
> But when I do this, the page shows the error, something like:
> "[ServletException in:/somePage.jsp] / divide by zero,"
>
> which tells me that the request object cannot be sent back to the
> layout. So then I tried to put the errorPage directive into a page
> that will be included in all the pages, then the error page is now
> embedded in the content tile. I just can't win!
>
> Is there some way of getting Tiles to cleanly forward to the error
> page,
> and the error page ONLY. Please don't tell me to check for errors in
> my
> actions, because I do, and there is no feasible way to catch every sort
> of error/exception given our "typical" software development environment
> (tight budgets and no time!).
>
> Thanks in advance.
>
> Russ Baker
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]