This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doAfterBody Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doAfterBody" Watch "doAfterBody" New topic


Shiang Wang
Ranch Hand

Joined: Jun 20, 2003
Posts: 96

In which of the following cases will the method doAfterBody() of a tag handler be invoked?
A. This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED
B. This method will be called if doAfterBody returns IterationTag.EVAL_BODY_AGAIN

This answer is B. I think A is correct too if the 'only' word is removed.
Right ?


Arut Jothi

Joined: Nov 11, 2004
Posts: 2
When doStartTag() returns BodyTag.EVAL_BODY_BUFFERD, setBodyContent() would be called and then doInitBody() would be called then finally doAfterBodyTag would be called.

So only answer B is correct.

Please refer HF book also for more info.
Consider Paul's rocket mass heater.
subject: doAfterBody