<!--- If the COMMIT flag exists in the URL, then let's flush the response to the client. This will change the state of the application by the time we throw the error below (which will affect how our application's onError() event-handler can work). ---> <cfif ( url.commit ?: false )> <!--- CFFlush sends the HTTP headers in the response and starts streaming content to the client as the given number of bytes become available. ---> <cfflush interval="1" /> </cfif> <!--- ------------------------------------------------------------------------------ ---> <!--- ------------------------------------------------------------------------------ ---> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> <h1> ColdFusion is the Cat's Pajamas! </h1> <p> ColdFusion's combination of tag-based and script-based syntax makes it both extremely flexible and incredibly powerful. It integrates seamlessly into your HTML templates while also presenting with the familiarity of many script-based languages (such as JavaScript). Oh, except it also has the full power of the JVM under the hood. </p> <p> That's <em>kablamo!</em> </p> <!--- We're going to THROW AN ERROR MID-WAY through our template processing! ---> <cfthrow type = "Boom" message = "Something went boom in the night." /> </body> </html>