I found this qn in one of the mocks, Ans to this qn is E, Can some body explain how its E, as i was thinking C will be more appropriate.
In which of the following cases will the method doAfterBody() of a tag handler be invoked? Select 1 correct option. 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. d This method will be called only when doEndTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED. e This method will be called if doAfterBody() returns IterationTag.EVAL_BODY_AGAIN.
Option C says that doAfterBody is only called when doStartTag() returns EVAL_BODY_INCLUDE or EVAL_BODY_BUFFERED, but there are other possibilities (like the one described in option E). => C is not correct
If doAfterBody returns EVAL_BODY_AGAIN, then doAfterBody is called once again => E is correct [ May 22, 2006: Message edited by: Rodrigo Alvarez ]
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams