struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mark.l...@talk21.com>
Subject Re: Error page problems with Tiles
Date Thu, 19 Feb 2004 08:19:21 GMT

<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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message