Resetting your page output

March 16, 2005

I just figured out a simple way of resetting the output stream in a coldfusion template using the JspWriter obtained from the PageContext:

You won't see any content above the line below.

<cfset GetPageContext().getOut().clearBuffer()>

But you will see this content down here.

4 people found this page useful, what do you think?


Did you know you could also do: <cfcontent reset="true"/>
Even easier, thanks Paul!

Recent Entries


did you hack my cf?