I mentioned this problem here days ago, and I asked the difference between redirect and forward here yesterday, but I m still at a loss to know why I got the exception

see: my.jsp is my jsp file , it exists in another jsp file which refers myjsp.jsp by an <iframe> ,that is <iframe src="myjsp.jsp"/>

my.jsp

<form name="myform" action ="/myapp/myaction.do" target="_self" >
...
</form>

<input type="button" value="submit" onclick="submit()"/>

<jsp:include page="myhtml.html"/>


<script> function submit() { myform.submit();

}



this is my action mapping

       <action path="/myapp/myaction"
           type="com.mypackage.myaction"
           name="myform"
           scope="session">
           <forward name="success" path="/myjsp.jsp"/>
       </action>


the action myaction does nothing than to modify the content of myhtml.html so when I forwarded back to myjsp.jsp, it shows different content.


I clicked the button on my jsp page, it throws "response already committed" exception, why?
and it indeed doest now always throw the exception, but it throws actually sometime.



I really want to know why, can anyone help?


_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to