Pete Freitag Pete Freitag

Resetting your page output

coldfusionjava

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.

Like this? Follow me ↯

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


FuseGuard Web App Firewall for ColdFusion

The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.

Comments

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