Pete Freitag Pete Freitag

Resetting your page output

Published on March 16, 2005
By Pete Freitag

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.


Resetting your page output was first published on March 16, 2005.


The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.

Try Fixinator

The weekly newsletter for the CFML Community


Even easier, thanks Paul!
by Pete Freitag on 03/16/2005 at 3:51:10 PM UTC