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=4964>.
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=4964

popBody() is called before doEndTag() is called in a BodyTag

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2002-05-14 23:35 -------
Reopened because the fix has been reverted.  It has been reverted because it
breaks struts and other applications.  Apparently, people have been depending on
this "feature".  :-(

The usual problem is that for a tag handler that implements BodyTag, it is
incorrect in doEndTag to write to the JspWriter obtained from
pageContext.getOut(), without following up with a call to writeOut() to flush
out the current buffer.  Alternately, if the page buffer is not used, and it is
desirable to write directly to the enclosing tag buffer, then getPreviousOout()
is the one to use to get the JspWriter to write to.  I have seen cases where
this is not followed in struts (e.g. org.apache.struts.taglib.html.LinkTag)

Anyone from struts development community care to make comments?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to