DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17562>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17562 Sub-Tiles not rendered correctly in 1.1b2 and 1.1RC1 ------- Additional Comments From [EMAIL PROTECTED] 2003-03-04 21:48 ------- According to the doc for javax.servlet.jsp.tagext.BodyContent: " The buffer size of a BodyContent object is unbounded. A BodyContent object cannot be in autoFlush mode. It is not possible to invoke flush on a BodyContent object, as there is no backing stream. " The code example given for this bug report causes an IOException on Tomcat 4.1.18 when pageContext.getOut().flush() is called on the inner insert tags. In the example, the first two times pageContext.getOut().flush() is called it is on the inner insert tags and it's trying to flush a BodyContent object. The third time it is called it is on the outer insert tag and is flushing a JspWriterImpl. I was able to get the example to work by changing the InsertTag code from this: if (flush) pageContext.getOut().flush(); doInclude(); to this: if (flush) pageContext.include(page); else doInclude(page); This allows pageContext.include to have its flushing side-effect when flush is set to true and calls RequestDispatcher if flush is false. In Tomcat this avoids the exception and provides the desired results. But I'm not sure if it's the best way to handle it and I don't know if it introduces any undesireable side effects. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]