WebSphere HTTP Server - <jsp:include and errorPage

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > July 2004 > <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 <jsp:include and errorPage
Jon Rasmussen

2004-07-04, 5:56 pm

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.

At the moment, when running on WebSphere 5.1, the JSP generate the
content of the topMenu include, and than insert the content of
Error.jsp into the same page.

Is there a way I can make sure that only Error.jsp is loaded, and not
any of the includes?
This was fine under WebLogic.

Thanks,

Jon Rasmussen
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com