Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

bodyContet.writeOut()  RSS feed

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we need to write out the contents in a BodyTagSupport Tag, we can use
BodyContent.writeOut(BodyContent.getEnclosingWriter()) to write everyting in the doAfterBody() iteration loop out? Simple as that?
Is it the same as retrieving Strng content from each iteration through BodyContent.getString(), then appening Strings from each iteration together, then BodyContent.getEnclosingWriter(thisString)? Are they same?
Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!