Originally posted by yi zhu:
Request the creation of new buffer, a BodyContent on which to evaluate the body of this tag. Returned from doStartTag when it implements BodyTag.
It means only if returned from doStartTag function.
If you check carefully the api (below) again, you will find that doAfterBody (same as doStartTag and other tag methods) is returning an int.
public
int doAfterBody() throws JspException
That means, 1, 2, 3, EVAL_BODY_AGAIN, and EVAL_BODY_BUFFERED are all legal values. If both EVAL_BODY_AGAIN and EVAL_BODY_BUFFERED have the same int value (2), then returning either means the same.
[ December 31, 2002: Message edited by: ks wong ]