You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mu Mike <mi...@hotmail.com> on 2004/04/05 07:23:00 UTC

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