302
Developing Web Applications with ColdFusion
CCFXRequest::Debug
BOOL CCFXRequest::Debug(void)
Checks whether the tag contains the
DEBUG
attribute. You should use this function to
determine whether or not you need to write debug information for this request. (See
the
CCFXRequest::WriteDebug
tag for details on writing debug information.)
Returns
TRUE
if the tag contains the
DEBUG
attribute; otherwise, returns
FALSE
.
Example
The following example checks to see whether the
DEBUG
attribute is present, and if it is,
it writes a brief debug message:
if ( pRequest->Debug() )
{
pRequest->WriteDebug( "Top secret debug info" ) ;
}
CCFXRequest::GetAttribute
LPCSTR CCFXRequest::GetAttribute(LPCSTR
lpszName
)
Retrieves the value of the passed attribute. Returns an empty string if the attribute
does not exist. (Use
CCFXRequest::AttributeExists
to test whether an attribute was
passed to the tag.)
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.
lpszName
Name of the attribute to retrieve (case insensitive).
Example
The following example retrieves an attribute named
DESTINATION
and writes its value
back to the user:
LPCSTR lpszDestination = pRequest->GetAttribute("DESTINATION") ;
pRequest->Write( "The destination is: " ) ;
pRequest->Write( lpszDestination ) ;
CCFXRequest::GetAttributeList
CCFXStringSet* CCFXRequest::GetAttributeList(void)
Retrieves a list of all attribute names passed to the tag. To retrieve the value of an
individual attribute, you should use
CCFXRequest::GetAttribute
.
Returns an object of class
CCFXStringSet Class
that contains a list of all attributes
passed to the tag.
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...