DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=16830>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=16830 Jasper do not reset BodyContent for tags with BodySupport and empty content [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2004-03-23 10:14 ------- OK, If you wish I am copying bug description from he url above that've started that bug. It has nothing to do with SKIP_BODY: Jasper one problem - if tag implements body tag support and sometimes body is empty and sometimes not, then we may have next problem: a)Tag uses body (bodyContent set) b)Tag sent to pool (bodyContent set) b)Tag uses empty body (old bodyContent set). I've resolved this by setting bodyContent attribute to null before sending tag to pool: Generator.java, line 1440: if (ctxt.getOptions().isPoolingEnabled()) { //We must reset body before sending to pool if it was set before if (n.implementsBodyTag() && n.getBody() != null) { out.printin(tagHandlerVar); out.println(".setBodyContent(null);"); } out.printin(n.getTagHandlerPoolName()); out.print(".reuse("); out.print(tagHandlerVar); out.println(");"); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]