• Post Reply Bookmark Topic Watch Topic
  • New Topic

doInitBody example  RSS feed

 
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!