Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TagSupport -- IterationTag  RSS feed

 
jr gil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 716
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not. You are precisely correct. I think I hit that one on the actual exam.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!