• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doAfterBody

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this true?

doAfterBody can also return EVAL_BODY_BUFFERED. But regardless of this setBodyContent() is called only once. For doAfterBody method return value EVAL_BODY_AGAIN and EVAL_BODY_BUFFERED produce same result.

I think doStartTag can only return EVAL_BODY_BUFFERED?
 
Tripati Sahu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
doAfterBody can also return EVAL_BODY_BUFFERED if the below conditions are satisfied.

1. the tag implements BodyTag interface
2. the doStartTag returns EVAL_BODY_BUFFERED
 
rachna jain
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please clarify the doubt on above explanation

refer page 581 HFS 2nd edition question 5 that says answers B and E not C

C option says EVAL_BODY_BUFFERED constant is valid return value of doAfterBody method


Please explain it is creating a big confusion
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic