2

我有一个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>

如果有人可以对此有所了解,人们会真的很有帮助吗?

4

0 回答 0