Custom tag variables
Any ColdFusion custom tag returns the following variables:
ThisTag .ExecutionMode
ThisTag .HasEndTag
ThisTag .GeneratedContent
ThisTag .AssocAttribs[ index ]
A custom tag can also set a Caller variable to provide infor-
mation to the caller. The Caller variable is set as follows:
<CFSET Caller. variable_name = "value">
The calling page can access the variable with the <CFOUT-
PUT> tag:
<CFOUTPUT>#Caller. variable_name #</CFOUTPUT>
Request variable
Request variables store data that pertains to the processing
of a single page request. Request variables allow you to store
data in a structure that can be passed to nested tags, such as
Custom Tags, and processed once.
Set a Request variable to provide information to nested tags.
The Request variable is set as follows:
<CFSET Request. field_name1 = "value">
<CFSET Request. field_name2 = "value">
<CFSET Request. field_name3 = "value">
...
Each nested tag can access the variable with the <CFOUT-
PUT> tag:
<CFOUTPUT>#Request. field_name1 #</CFOUTPUT>
Form variable
ColdFusion supports the Form variable FieldNames. Field-
Names returns the names of the fields on a form. You can
use it on the action page associated with a form.
Form.FieldNames
Quick Reference to CFML
19
Need help?
Do you have a question about the COLDFUSION 4.5-QUICK REFERENCE TO CFML and is the answer not in the manual?