struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanoj, Antony (IE10)" <Sanoj.Ant...@honeywell.com>
Subject RE: why I got "response already committed" exception
Date Mon, 05 Apr 2004 06:28:21 GMT

Have you tried using the jsp include directive?  
This will include the contents of your snapshotHtml page in the body.jsp,
before it compiles.


-----Original Message-----
From: Mu Mike [mailto:mikemu_58@hotmail.com]
Sent: Monday, April 05, 2004 11:24 AM
To: user@struts.apache.org
Subject: RE: why I got "response already committed" exception


I tried, got the same exception


>From: "Sanoj, Antony (IE10)" <Sanoj.Antony@honeywell.com>
>Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
>To: Struts Users Mailing List <user@struts.apache.org>
>Subject: RE: why I got "response already committed" exception
>Date: Sun, 4 Apr 2004 22:56:39 -0700 
>
>
>Try
>
><jsp:include page="<%=snapshotHtml%>" flush="false"/>
>
>This will prevent the buffer from flushing before the target page  
specified
>by page attribute executes.
>But this can be done only in containers implementing  jsp1.2 spec.
>
>
>
>
>
>
>-----Original Message-----
>From: Mu Mike [mailto:mikemu_58@hotmail.com]
>Sent: Monday, April 05, 2004 10:53 AM
>To: user@struts.apache.org
>Subject: why I got "response already committed" exception
>
>I have a body.jsp jsp page which has a statement like this
>
><jsp:include page="<%=snapshotHtml%>" flush="true"/>
>
>there exists also a form in the jsp page
>
><form id="myform" action="myaction" >
>  <input type=submit onlcick="dosub();"/>
>...
>
><form>
>
><scripts>
>dosub()
>{
>   myform.target=window.opener.name;
>   myform.submit();
>}
>
>now I opened body.jsp in a "<iframe>" which exists in another jsp page, 
but
>when I submitted the form, there threw the exception "response already
>committed" ,why? and how can I solve this problem?
>
>Thanks&Regards
>Mike
>
>_________________________________________________________________
>与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  


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

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


Mime
View raw message