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=28269>. 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=28269 String Buffer bug with Tiles ------- Additional Comments From [EMAIL PROTECTED] 2004-05-02 17:40 ------- I reproduced this as well using Tomcat 4.1.29 and the problem lies with the bodyContent. I guess Tomcat must be caching the tag and reusing the body content - the body is cleared in the setBodyContent method and the JSP 1.2 spec states this method is not called if the tag has no body (JSP 1.1 was slightly ambiguous IMO). I modified the PutTag to clear the body content in the doEndTag() method and this resolved the problem: if (bodyContent != null) bodyContent.clearBody(); Unfortunately I have to be somewhere else now otherwise I'd submit a patch - unless someone else picks this up, I'll submit one tommorrow. Niall Niall --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]