Chapter 18: Building Custom CFAPI Tags
Method Summary
String
int
int
Query
String
Method Detail
attributeExists
public boolean attributeExists(String name)
Checks to see whether the attribute was passed to this tag.
The following example checks to see if the user passed an attribute named
DESTINATION to the tag and throws an exception if the attribute was not passed:
if ( ! request.attributeExists("DESTINATION") )
{
} ;
Parameters:
name
Returns:
Returns
See Also:
getAttribute, getAttributeList
getAttributeList()
getIntAttribute(String name)
getIntAttribute(String name, int def)
getQuery()
getSetting(String name)
throw new Exception(
"Missing DESTINATION parameter",
"You must pass a DESTINATION parameter in "
"order for this tag to work correctly." ) ;
— Name of the attribute to check (case insenstive)
if the attribute is available otherwise returns
true
Retrieves a list of all
attributes passed to the tag.
Retrieves the value of the
passed attribute as an
integer.
Retrieves the value of the
passed attribute as an
integer (returns default if the
attribute does not exist or is
not a valid number).
Retrieves the query that was
passed to this tag.
Retrieves the value of a
global custom tag setting.
.
false
317
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