O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required