![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Скачать руководство пользователя страница 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
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...