我用 window.open 打开一个窗口作为上传窗口,我想上传成功后关闭窗口,我是这样做的,但是出现错误:
<html:form action="..." enctype="...." styleId="form1">  
       <html:file property="theFile"/>  
        <html:button property="aa" onclick="upload();">提交</html:button>  
    
 </html:form>  
 <script type="text/javascript">     
   function upload(){        
     document.form1.submit();  
     window.close();  
  }  
 </script>  
当我点击“提交”后,tomcat报下面的错误:
Processing of multipart/form-data request failed. Connection reset
不知道为什么??