Creating a Customized Request Error Page

To create the request display template, do the following:

1.
Create a new ColdFusion template called ErrorRequest.cfm, located in the same directory as your Application.cfc file. Include whatever images or formatting you want, using whatever <img> or other tags you would normally. Remember to not put any CFML tags in this template.
2.
Include the special ERROR.diagnostics variable wherever you want the actual error message to appear, if you want it to appear at all. Contrary to what you are used to, the variable should not be between <cfoutput> tags.
3.
If you want, you can include the special ERROR.mailTo variable to display the email address of your site’s webmaster or some other appropriate person. ...

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.