Handling Missing Templates

One of the new features of ColdFusion 8 is the ability to handle requests for ColdFusion files that do not exist. In the past, handling these requests was problematic and required updating of the Web server settings. Now you can simply add another method to your Application.cfc file to handle these missing templates.

Note though that this support for missing templates helps only with requests for missing ColdFusion files. If a user requests dharma.html (notice that the extension is html, not cfm), then ColdFusion can’t help you.

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started 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.