![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual Download Page 343](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369343.webp)
Chapter 18: Building Custom CFAPI Tags
317
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") )
{
throw new Exception(
"Missing DESTINATION parameter",
"You must pass a DESTINATION parameter in "
"order for this tag to work correctly." ) ;
} ;
Parameters:
name
— Name of the attribute to check (case insenstive)
Returns:
Returns
true
if the attribute is available otherwise returns
false
.
See Also:
getAttribute, getAttributeList
String
getAttributeList()
Retrieves a list of all
attributes passed to the tag.
int
getIntAttribute(String name)
Retrieves the value of the
passed attribute as an
integer.
int
getIntAttribute(String name, int def)
Retrieves the value of the
passed attribute as an
integer (returns default if the
attribute does not exist or is
not a valid number).
Query
getQuery()
Retrieves the query that was
passed to this tag.
String
getSetting(String name)
Retrieves the value of a
global custom tag setting.
Method Summary
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...