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=17509>. 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=17509 Jasper erroneously optimises BodyTag instances with no body [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-03-27 02:32 ------- All the tag handler lifecycle methods have been clarified in the upcoming JSP 2.0. The latest javax.servlet.jsp.tagext.BodyTag, available from jakarta-servletapi-5/jsr152, has this: * <p>Note that which methods are invoked after the doStartTag() depends on * both the return value and on if the custom action element is empty * or not in the JSP page, not how it's declared in the TLD. * * <p> * If SKIP_BODY is returned the body is not evaluated, and doEndTag() is * invoked. * * <p> * If EVAL_BODY_INCLUDE is returned, and the custom action element is not * empty, setBodyContent() is not invoked, * doInitBody() is not invoked, the body is evaluated and * "passed through" to the current out, doAfterBody() is invoked * and then, after zero or more iterations, doEndTag() is invoked. * If the custom action element is empty, only doStart() and * doEndTag() are invoked. * * <p> * If EVAL_BODY_BUFFERED is returned, and the custom action element is not * empty, setBodyContent() is invoked, * doInitBody() is invoked, the body is evaluated, doAfterBody() is * invoked, and then, after zero or more iterations, doEndTag() is invoked. * If the custom action element is empty, only doStart() and doEndTag() * are invoked. This means that if a custom action is empty, we don't even need to check the return value of doStartTag(), and may simply proceed to calling doEndTag(). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]