Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doInitBody example

 
Stu Johns
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, what use is the doInitBody method in the BodyTag interface, I know when its called but what would i code it to do (for example)?

thanks

Stu
 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi stu,

This method is called before the body evaluation, it is called only once and actually it is a subtype of a outputstream, this mean that you can use it to change/manipulate the body in such a way you need to acomplish some business rule of something alike, so the body can be evaluated correctly. I hope be helpness.
[ November 05, 2008: Message edited by: Victor Dolirio ]
 
Stu Johns
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but at the time it is called the BodyContent object is empty?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic