This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes TagSupport -- IterationTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "TagSupport -- IterationTag" Watch "TagSupport -- IterationTag" New topic
Author

TagSupport -- IterationTag

jr gil
Greenhorn

Joined: Jan 14, 2003
Posts: 7
The JWebPlus mock exam made this statement to explain one of its answers.
TagSupport implements IterationTag. Therefore, doAfterBody() will be called if the handler extends TagSupport.

However, it looks like the default return value for the doStartTag() in TagSupport is SKIP_BODY. If doStartTag() returns SKIP_BODY, will the body then not be evaluated and the next method called would be doEndTag()???
It doesn't seem like JUST because we extend TagSupport that doAfterBody() is guaranteed to be called.
Any Ideas ???
Al Newman
Ranch Hand

Joined: Mar 30, 2003
Posts: 716
It's not. You are precisely correct. I think I hit that one on the actual exam.


SCJP1.4, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TagSupport -- IterationTag
 
Similar Threads
doAfterBody()
Eduardo Mock Exam : No. 24
custom tag lifecycle
jdiscuss mock exam question
A question from mock exam