320
}
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
String strVerify = request.getSetting("MyCustomTag.VerifyAddress")
;
if ( Boolean.valueOf(strVerify) )
{
}
Parameters:
name
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() )
{
}
"order for this tag to work correctly." ) ;
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:
// Do address verification...
— The name of the setting to retrieve (case insensitive)
response.writeDebug( "debug info" ) ;
Developing Web Applications with ColdFusion
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?
Questions and answers