• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on doAfterBody()

 
Abhishek Pratap
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When doAfterBody() is called ?

1)This method will be called if doAfterBody() returns IterationTag.EVAL_BODY_AGAIN.

2)This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED

Answer is 1.

What abt point 2?
 
bhaskaritp naidu
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think both the options are right.

regards,

bhaskar.

(Love Makes Life Beautiful)
 
Swathi Sri
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I understand that second option is wrong because of "Only" word in the sentence.

2)This method will be called only when doStartTag() returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED

Regards,
Swathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic