Chapter 40 ColdFusion Scripting

IN THIS CHAPTER

A New Era in CFML Scripting 487

What Is <cfscript>? 488

Implementing CFCs in Script 491

Replacing Tags with Script 492

Defining Functions in Script 505

Exception Handling in Script 507

Common Problems and Solutions 508

Conclusion 510

Have you ever heard someone complain about ColdFusion that they didn’t like that “you have to code in tags”? The very good news is that times have changed for scripting in ColdFusion 9.

Some may know that there’s long been a feature called <cfscript>, which allows writing CFML in a more script-like way. The truth is that it offered just a tiny subset of CFML functionality.

ColdFusion 9 has dramatically changed the landscape for those who prefer to write or read code ...

Get Adobe ColdFusion 9 Web Application Construction Kit, Volume 2: Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.