User Guide
778 Chapter 5: ColdFusion Java CFX Reference
"Missing DESTINATION parameter",
"You must pass a DESTINATION parameter in "
"order for this tag to work correctly." ) ;
} ;
debug
Description
Checks whether the tag contains the debug attribute. Use this method to determine whether to
write debug information for this request. For more information, see
writeDebug.
Returns True if the tag contains the debug attribute; otherwise returns False.
Category
Request interface
Syntax
public boolean debug()
See also
writeDebug
Example
The following example checks whether the debug attribute is present, and if so, it writes a brief
debug message:
if ( request.debug() )
{
response.writeDebug( "debug info" ) ;
}
getAttribute
Description
Retrieves the value of a passed attribute. Returns an empty string if the attribute does not exist
(use
attributeExists to test whether an attribute was passed to the tag). Use
getAttribute(String,String) to return a default value rather than an empty string.
Returns the value of the attribute passed to the tag. If no attribute of that name was passed to the
tag, an empty string is returned.
Category
Request interface
Syntax
public String getAttribute(String name)
See also
attributeExists
, getAttributeList, getIntAttribute, getAttribute
Parameters
Parameter Description
name The attribute to retrieve (case-insensitive)