1.往指定dom中添加内容:xx.innerHTML="";2.表单的提交:document.forms[i-1].submit();3.异常页面的配置 <error-page> <error-code>404</error-code> <location>/error.jsp</location> </error-page> <error-page> <exception-type>java.lang.RuntimeException</exception-type> <location>/error.jsp</location> </error-page>同时注意在IE选项下取消设置【显示友好http错误提示】;