struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sheehan, Andrew" <>
Subject JSP outputstream question
Date Mon, 09 May 2005 15:31:18 GMT
Hi all,


I have a Jsp file that has several <jsp:include>'s  and custom taglibs.  The
<jsp:includes> work just fine but as soon as I place my menu taglib in the
jsp, I receive a "java.lang.IllegalStateException: Response already


The menu taglib does call for the pageContexts' writer as it writes out the
menu html.  It seems [to me] that all should be fine with my implementation,
but obviously that's not true.   Should I use <%@ include
file="/includes/registration/header.jsp" %>, and not <jsp:include>?


Any suggestions?



I have a Jsp such as this:


<%@ page contentType="text/html; charset=iso-8859-1" language="java"
errorPage="/pages/system/error.jsp" %>

<%@ taglib uri="/tags/struts-html" prefix="html" %>

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

<%@ taglib uri="/tags/navigation"  prefix="menu" %>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

<html:html locale="true">


 <title><bean:message key="html.registration.title"/></title>





<jsp:include page="/pages/includes/registration/header.jsp" />


<menu:menu type="registrar" />


[standard html content]


<jsp:include path="/pages/includes/standard/footer.jsp" />

<jsp:include path="/pages/includes/standard/copyright.jsp />




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message