Custom Error Handling; Web Server Security Integration; Mapping Out An Application Framework - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 12: Using the Application Framework

Custom error handling

Using the CFERROR tag, you can display customized HTML pages when errors occur.
This allows you to maintain a consistent look and feel within your application even
when errors occur. It also allows you to optionally suppress the display of error
information.
See
"Generating Custom Error Messages (CFERROR)" on page 93
information.

Web server security integration

You can integrate your applications with the user authentication and security provided
by your Web server. In addition, the ColdFusion Server offers a security framework that
controls access to applications, pages, data sources, and users. You set the bounds of a
security domain using the CFAUTHENTICATE tag.
See Chapter 17, "Application Security," on page 263 for more information.

Mapping Out an Application Framework

An important step in designing a ColdFusion application is mapping out its directory
structure.
Before you start building the application, establish a root directory for the application.
Application pages may be stored in subdirectories of the root directory.
When any ColdFusion application page is requested, ColdFusion searches up the
page's directory tree for an
Application.cfm
If it is not found, ColdFusion searches up the directory tree until it finds an
Application.cfm
directory tree, ColdFusion uses the first one it finds.
Just as the
you can specify a file named
application page in the same application.
ColdFusion Server looks for the
Application.cfm
never be executed if it resides in another directory.
The
OnRequestEnd.cfm
the called page, or if the called page executes the CFABORT or CFEXIT tag.
Just as the
OnRequestEnd.cfm
Defining a root directory for an application has a number of advantages:
Application.cfm
code is logically included at the beginning of that page.
file. If more than one
file is executed before each application page it governs,
Application.cfm
OnRequestEnd.cfm
OnRequestEnd.cfm
file of the current application page. The
file will not be executed if there is an error or an exception in
file must be spelled with a capital A, you must spell the
Application.cfm
file with capital O, R, and E.
file. When it is found, the
file lives in the current
Application.cfm
, which is executed after each
file in the same directory as the
OnRequestEnd.cfm
185
for more
file will

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents