我有一个取消按钮,用于刷新值。现在我已将它们转换为刷新或重新加载页面并移至只读页面。所以改变了取消按钮来调用这样的函数,
function chkArea(){
var url='<c:out value="${model.contextPath}"/>/abcHandler.do?operation=view;
document.forms[0].action=url;
document.forms[0].submit();
}
现在,当我提交取消时,我在 UI 中收到以下消息,
java.lang.IllegalStateException: Response has already been committed at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1892) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:249) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)........
并且控制台显示以下错误:
javax.servlet.ServletException: The "url" attribute illegally evaluated to "null" or "" in <import>
at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
我在 JS 或 JSP 中看不到任何错误。似乎有什么问题?有什么建议么?