• 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

possible value of doAfterBody

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somewhere i read doAfterBody can return EVAL_BODY_BUFFERED if implemented BodyTag.. Even i have flow chart with me but i dont know how to copy here... but in HFSJ and few other places it is given only SKIP_BODY and EVAL_BODY_AGAIN? Which one is correct?

Thanks
Radmika
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There are only two return type for doAfterBody method SKIP_BODY , EVAL_BODY_AGAIN. ( Actually there are three, but one EVAL_BODY_TAG is deprecated).

The sole purpose of EVAL_BODY_BUFFERED is to activate the mechanism to run the setBodyContent and doInitBody method if required. In the Life cycle these methods are above the doAfterBody method. Also these methods run only one time in the tag invocation. So I think the EVAL_BODY_BUFFERED is not appropriate return type for doAfterBody method.

Hope it help you.

Thanks
 
Slime does not pay. Always keep your tiny ad dry.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic