320
Developing Web Applications with ColdFusion
"order for this tag to work correctly." ) ;
}
Returns:
The Query that was passed to the tag. If no query was passed to the tag then null is
returned.
getSetting
public String getSetting(String name)
Retrieves the value of a global custom tag setting. Custom tag settings are stored
within the CustomTags section of the ColdFusion Registry key.
Note
All custom tags implemented in Java share a single registry key for
storing settings. This means that to avoid name conflicts you should
preface the names of your settings with the name of your
CustomTag class.
For example, the code below retrieves the value of a setting named
’VerifyAddress’ for a CustomTag class named MyCustomTag:
String strVerify = request.getSetting("MyCustomTag.VerifyAddress")
;
if ( Boolean.valueOf(strVerify) )
{
// Do address verification...
}
Parameters:
name
— The name of the setting to retrieve (case insensitive)
Returns:
The value of the custom tag setting. If no setting of that name exists then an empty
string is returned.
debug
public boolean debug()
Checks whether the tag contains the DEBUG attribute. You should use this
method to determine whether or not you need to write debug information for this
request (see Response.writeDebug for details on writing debug information).
The following example checks to see whether the DEBUG attribute is present, and
if it is then it writes a brief debug message:
if ( request.debug() )
{
response.writeDebug( "debug info" ) ;
}
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...