java.io.IOException: Illegal to flush within a custom tag
在使用oscache之后,老是报出错误:2009-06-12 10:25:37,375 WARNorg.apache.struts2.components.ActionComponent - error while trying to flush writer
java.io.IOException: Illegal to flush within a custom tag
at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:80)
at org.apache.struts2.components.ActionComponent.end(ActionComponent.java:167)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
at org.apache.jsp.index_jsp._jspx_meth_s_005faction_005f3(index_jsp.java:534)
at org.apache.jsp.index_jsp._jspx_meth_os_005fcache_005f0(index_jsp.java:182)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:99)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) 。
很是郁闷的问题,不知道哪儿出错。
在网上看到这个帖子http://raibledesigns.com/rd/entry/oscache_doesn_t_play_nicely
来了点感觉,发现<s:action>里面有个flush的属性,直接把这个flush设置为false,就不再报错了~~
页:
[1]