You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/27 03:24:24 UTC
DO NOT REPLY [Bug 7392] -
A body tag without a body doesn't generate correct JSP code
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=7392>.
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=7392
A body tag without a body doesn't generate correct JSP code
jan.luehe@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
------- Additional Comments From jan.luehe@sun.com 2003-03-27 02:24 -------
All the tag handler lifecycle methods have been clarified in the
upcoming JSP 2.0 spec.
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 doStartTag() returns SKIP_BODY, or if it returns
EVAL_BODY_INCLUDE or EVAL_BODY_BUFFERED and the custom action element
is empty, doAfterBody() will *NOT* be invoked.
Please do not reopen this bug, as what you are requesting contradicts the JSP
spec. Place your logic in doEndTag() instead.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org