Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Buffering of bodycontent in tags

 
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?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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 VI Editor Ubuntu
  • 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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic