• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Buffering of bodycontent in tags

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh!Thanks a lot.I thought we can return both from doAfterBody.Thanks for correcting me
 
reply
    Bookmark Topic Watch Topic
  • New Topic