java.io.IOException: Illegal to flush within a custom tag

在使用oscache之后,老是报出错误:



2009-06-12 10:25:37,375 [http-8080-1] WARN  org.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) [jsp-api.jar:na]



at org.apache.struts2.components.ActionComponent.end(ActionComponent.java:167) [struts2-core-2.1.6.jar:na]



at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42) [struts2-core-2.1.6.jar:na]



at org.apache.jsp.index_jsp._jspx_meth_s_005faction_005f3(index_jsp.java:534) [ekouw/:na]



at org.apache.jsp.index_jsp._jspx_meth_os_005fcache_005f0(index_jsp.java:182) [ekouw/:na]



at org.apache.jsp.index_jsp._jspService(index_jsp.java:99) [ekouw/:na]





at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:na]



at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api.jar:na]



at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) [jasper.jar:na]。

很是郁闷的问题,不知道哪儿出错。

在网上看到这个帖子http://raibledesigns.com/rd/entry/oscache_doesn_t_play_nicely
来了点感觉,发现<s:action>里面有个flush的属性,直接把这个flush设置为false,就不再报错了~~

你可能感兴趣的:(java,apache,jsp,servlet,OS)