
268
Chapter 13: Designing and Optimizing a ColdFusion Application
About applications
The term
application
can mean many things. An application can be as simple as a guest book or as
sophisticated as a full Internet commerce system with catalog pages, shopping carts, and
reporting.
However, an application has a specific meaning in ColdFusion. A ColdFusion application consists
of one or more ColdFusion pages that work together and share a common set of resources. In
particular, the application shares an application name as specified in a
cfapplication
tag, and all
pages in the application share variables in the Application scope. What appears to a user to be a
single application, for example, a company’s website, might consist of multiple ColdFusion
applications.
While there are no definite rules as to how you represent your web application as a ColdFusion
application or applications, the following guidelines are useful:
•
Application pages share a common general purpose. For example, a web storefront is typically a
single ColdFusion application.
•
Many, but not necessarily all, pages in a ColdFusion application share data or common code
elements, such as a single login mechanism.
•
Application pages share a common look and feel, often enforced by using common code
elements, such as the same header and footer pages, and a common error message template.
This chapter describes the tools that ColdFusion provides to create an application, and presents
information on how you can develop and optimize your application.
Elements of a ColdFusion application
Before you develop a ColdFusion application, you must determine how to structure the
application and how to handle application-wide needs and issues. In particular, you must consider
all of the following:
•
The overall application framework
•
Application-level settings and functions
•
Reusable application elements
•
Shared variables
•
Application security and user identification
The following sections introduce these application elements and provide references to more
detailed information.
The application framework
The application framework is the overall structure of the application and how your directory
structure and application pages reflect that structure. You can use a single application framework
to structure multiple ColdFusion applications into a single website or Internet application. You
can structure a ColdFusion application using many methodologies. For example, the FuseBox
application development methodology is one popular framework for developing ColdFusion web
applications. (For more information on FuseBox, see www.fusebox.org.)
Содержание COLDFUSION MX 61-DEVELOPING COLDFUSION MX
Страница 1: ...Developing ColdFusion MX Applications...
Страница 22: ...22 Contents...
Страница 38: ......
Страница 52: ...52 Chapter 2 Elements of CFML...
Страница 162: ......
Страница 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Страница 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Страница 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Страница 266: ......
Страница 314: ...314 Chapter 14 Handling Errors...
Страница 344: ...344 Chapter 15 Using Persistent Data and Locking...
Страница 349: ...About user security 349...
Страница 357: ...Security scenarios 357...
Страница 370: ...370 Chapter 16 Securing Applications...
Страница 388: ...388 Chapter 17 Developing Globalized Applications...
Страница 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Страница 410: ......
Страница 426: ...426 Chapter 19 Introduction to Databases and SQL...
Страница 476: ...476 Chapter 22 Using Query of Queries...
Страница 534: ...534 Chapter 24 Building a Search Interface...
Страница 556: ...556 Chapter 25 Using Verity Search Expressions...
Страница 558: ......
Страница 582: ...582 Chapter 26 Retrieving and Formatting Data...
Страница 668: ......
Страница 734: ...734 Chapter 32 Using Web Services...
Страница 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Страница 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Страница 788: ......
Страница 806: ...806 Chapter 35 Sending and Receiving E Mail...