• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Buffering of bodycontent in tags

 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when doAfterBody returns EVAL_BODY_AGAIN in a tag handler whose doStartTag has returned EVAL_BODY_BUFFERED.Does that means the first evaluation goes to buffer and the second one goes to output?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you're still using the buffer during a re-evaluation.
[ July 10, 2007: Message edited by: Christophe Verre ]
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then whats the difference between returning EVAL_BODY_AGAIN and EVAL_BODY_BUFFERED in doAfterBody?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EVAL_BODY_BUFFERED is returned by doStartTag, not doAfterBody.

doStartTag() can return SKIP_BODY, EVAL_BODY_INCLUDE or EVAL_BODY_BUFFERED.
doAfterBody() can return SKIP_BODY or EVAL_BODY_AGAIN.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh!Thanks a lot.I thought we can return both from doAfterBody.Thanks for correcting me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic