Adobe COLDFUSION 9 Manual page 24

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
<!--- Configure dynamic attribute variables. --->
<cfparam name="theURL" default="http://www.adobe.com">
<cfparam name="resolveURL" default="yes">
<!--- Code that dynamically changes values for attributes can go here. --->
<!--- Create an arguments structure using variables. --->
<cfset myArgs=StructNew()>
<cfset myArgs.url="#theURL#">
<!--- Include a user name and password only if they are available. --->
<cfif IsDefined("username")>
<cfset myArgs.username="#username#">
</cfif>
<cfif IsDefined("password")>
<cfset myArgs.password="#password#">
</cfif>
<cfset myArgs.resolveURL="#resolveURL#">
<cfset myArgs.timeout="2">
<!--- Use the myArgs structure to specify the cfhttp tag attributes. --->
<cfhttp attributeCollection="#myArgs#">
<cfoutput>
#cfhttp.fileContent#
</cfoutput>
Note: The
attributeCollection
from the
attributeCollection
attribute and explicit custom tag attributes. Also, in the
attributeCollection
attribute cannot contain the
attributeCollection
the
tag.
cfmodule
You can use the
attributeCollection
cfargument
cfbreak
cfcase
cfcatch
cfcomponent
cfdefaultcase
cfelse
Built-in tags
Built-in tags make up the heart of ColdFusion. These tags have many uses, including the following:
• Manipulating variables
• Creating interactive forms
• Accessing and manipulating databases
• Displaying data
• Controlling the flow of execution on the ColdFusion page
• Handling errors
attribute used in the
cfmodule
attribute for all other tags. In the
name
attribute in all tags except the following:
cfelseif
cffunction
cfif
cfimport
cfinterface
cflogin
cfloginuser
Last updated 8/5/2010
tag and when calling custom tags directly is different
tag and in custom tags, you can mix the
cfmodule
cfmodule
and
attributes. Specify these attributes directly in
template
cflogout
cfloop
cfparam
cfprocessingdirective
cfproperty
cfrethrow
cfreturn
tag, the
cfset
cfsilent
cfswitch
cftry
19

Advertisement

Table of Contents
loading

Table of Contents