<% response.sendRedirect(submit_success);
%>
我正在尝试在处理我的表单后将重定向发送到 JSP 文件。
我在控制台中看到异常 -> 无法转发。响应已提交。为什么我会收到此错误,我应该怎么做才能解决这个问题?
[10/1/12 17:35:03:257 EDT] 0000022f servlet Ecom.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /SubmitContentProcess.jsp in application dwsecure. Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed.
at java.lang.Throwable.<init>(Throwable.java:67)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:139)
at com.ibm._jsp._SubmitContentProcess._jspService(_SubmitContentProcess.java:233)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:17