WebSphere HTTP Server - Re: <jsp:include and errorPage

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > July 2004 > Re: <jsp:include and errorPage





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: <jsp:include and errorPage
Chris Smith

2004-07-03, 7:24 pm

Jon Rasmussen wrote:
> I have a JSP that that is constructed by including some dynamic
> content:
>
> <%@ page errorPage="/Error.jsp" %>
> [...]
>
> <jsp:include page="/generic/topMenu.jsp" flush="true">
> <jsp:param name="top_menu" value="displayHome" />
> <jsp:param name="top_menu_title" value="Home" />
> </jsp:include>
>
> [..body content...]
>
> </html>
>
>
> When an error 500 situation occurs in the main section of the page, I
> want it to redirect to the Error.jsp page.


Then set flush to false, not true. Once you've flushed your output to
the client, you can't go back in time and take it back. At that point,
there's no clean way to deal with an error.

> This was fine under WebLogic.


I'm having trouble imagining how that possibly could have been the case.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com