我有一个struts2应用程序,工作finr。但是当我以html形式或其他任何地方将标签放入jsp时,它会抛出
Struts Problem Report
Struts has detected an unhandled exception:
Messages: Stream closed
File: org/apache/jasper/runtime/JspWriterImpl.java
Line number: 204
Stacktraces
java.io.IOException: Stream closed
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:173)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
我也在struts.devMode=true
中提到struts.properties
。
我们得到这种异常的基本原因是当jsp的输出已经出现在浏览器中但某些内容仍在评估但不确定为什么会出现这种情况?
编辑这是jsp虽然我刚刚保留了最小的信息
<!doctype html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
</head>
<body>
<h1>Struts 2 debug tag example</h1>
<s:debug />
</body>
</html>
如果有人可以对此有所了解,那么人们会非常有帮助吗?