• 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?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!