Originally posted by Sandeep Chhabra:
In which of the following cases will the method doAfterBody() of a tag handler be invoked?
a This method will always be called when the body of the tag is not empty.
b This method will be called only when the body of the tag IS empty.
c This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.
It'll also be called when doAfterBody() (ie. the same method) returns IterationTag.EVAL_BODY_AGAIN.
d This method will be called only when doEndTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED.
doEndTag() is called at the end of the tag processing. It can only return SKIP_PAGE or EVAL_PAGE.
e This method will be called if doAfterBody() returns IterationTag.EVAL_BODY_AGAIN.
I think the correct answer should be C. Can anyone please confirm.
Thanks