Chapter 5: Building Blocks Of Coldfusion Applications; Creating Coldfusion Elements - Adobe COLDFUSION 9 Manual

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

Chapter 5: Building Blocks of ColdFusion
Applications

Creating ColdFusion Elements

You can create ColdFusion elements to organize your code. When you create any of these elements, you write your
code once and use it, without copying it, in many places.
About CFML elements that you create
Adobe ColdFusion provides you with several techniques and elements to create sections of code that you can use
multiple times in an application. Many of the elements also let you extend the built-in capabilities of ColdFusion.
ColdFusion provides the following techniques and elements:
• ColdFusion pages you include using the
• User-defined functions (UDFs)
• ColdFusion components
• Custom CFML tags
• CFX (ColdFusion Extension) tags
ColdFusion can also use elements developed using other technologies, including the following:
• JSP tags from JSP tag libraries. For information on using JSP tags, see
Applications" on page 1125.
• Java objects, including objects in the Java run-time environment and JavaBeans. For information on using Java
objects, see
"Integrating J2EE and Java Elements in CFML
• Microsoft COM (Component Object Model) objects. For information on using COM objects, see
COM and CORBA Objects in CFML
• CORBA (Common Object Request Broker Architecture) objects. For information on using CORBA objects, see
"Integrating COM and CORBA Objects in CFML
• Web services. For information on using web services, see
Including pages with the cfinclude tag
The
tag adds the contents of a ColdFusion page to another ColdFusion page, as if the code on the included
cfinclude
page was part of the page that uses the
ColdFusion elements that you incorporate in multiple pages. Instead of copying and maintaining the same code on
multiple pages, you can store the code in one page and then reference it in many pages. For example, the
tag is commonly used to place a header and footer on multiple pages. This way, if you change the header or footer
design, you only change the contents of a single file.
tag
cfinclude
Applications" on page 1125.
Applications" on page 1170.
Applications" on page 1170.
"Using Web
tag. It lets you pursue a "write once use multiple times" strategy for
cfinclude
Last updated 8/5/2010
"Integrating J2EE and Java Elements in CFML
Services" on page 1093.
146
"Integrating
cfinclude

Advertisement

Table of Contents
loading

Table of Contents