Adobe COLDFUSION 9 Manual page 26

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
• Service tags with bodies, such as cfmail and cfquery
• Tags for defining and using components and functions: cfcomponent, cfinterface, cfimport, cffunction, cfproperty,
cfargument. For more information, see
Tag without bodies
Several basic ColdFusion tags now have corresponding CFScript operators. These operators take a subset of standard
tag attributes, and do not allow custom attributes. They do not return values.
The following list specifies the CFML tags and their corresponding CFScript syntax:
• cfabort:
abort ["message"];
• cfexit:
exit ["methodName"];
• cfinclude:
include "template";
• cfparam:
param [type] name [=defaultValue];
The param attribute can now take any number of name=value pairs. Param can also take all the attributes of
as name-value pairs.
<cfparam>
For example:
<cfscript>
param name="paramname" default="value" min="minvalue" max="maxvalue" pattern="pattern"
</cfscript>
• cfrethrow:
rethrow;
• cfthrow:
throw "message";
For detailed information on the statement parameters, see the corresponding tag attribute description in the CFML
Reference.
Language-level tags with bodies
ColdFusion includes CFScript elements that provide the functions of the following language (compiler)-level tags,
which have bodies. These tags manage the execution of code within their bodies:
• cflock:
lock
• cfthread:
thread
• cftransaction:
transaction
Thread and transaction support also include functions, such as
manage any thread or transaction, whether you define it with a tag or a function.
The lock, thread, and transaction operations have the following syntax:
operationName attributeName1=value1 attributName2=value2...
{body contents }
cflock
The lock operation has no special characteristics or limitations. All cflock tag attributes are valid operation parameters.
The following code uses the lock operation:
"Defining components and functions in
threadJoin
Last updated 8/5/2010
CFScript" on page 121.
and
, that let you
transactionCommit
21

Advertisement

Table of Contents
loading

Table of Contents