• 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
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

doAfterBody

 
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?
 
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
 
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic