MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual page 414

Table of Contents

Advertisement

394
This section provides an overview of these object types. For a complete example Java
CFX that uses
on page 397.
Request object
The
interface. It provides methods for retrieving attributes, including queries, passed to
the tag and for reading global tag settings.
Method
attributeExists
getAttribute
getIntAttribute
getAttributeList
getQuery
getSetting
debug
Response object
The
interface. It provides methods for writing output, generating queries, and setting
variables within the calling page.
Method
write
setVariable
addQuery
writeDebug
Query object
The
includes methods for retrieving name, row count, and column names and methods
for getting and setting data elements.
Method
getName
getRowCount
getColumns
getData
,
Request
Response
object is passed to the
Request
Description
Checks whether the attribute was passed to this tag.
Retrieves the value of the passed attribute.
Retrieves the value of the passed attribute as an integer.
Retrieves a list of all attributes passed to the tag.
Retrieves the query that was passed to this tag, if any.
Retrieves the value of a global custom tag setting.
Checks whether the tag contains the
object is passed to the
Response
Description
Outputs text into the calling page.
Sets a variable in the calling page.
Adds a query to the calling page.
Outputs text into the debug stream.
object provides an interface for working with ColdFusion queries. It
Query
Description
Retrieves the name of the query.
Retrieves the number of rows in the query.
Retrieves the names of the query columns.
Retrieves a data element from the query.
Chapter 21 Building Custom CFXAPI Tags
, and
objects, see the "ZipBrowser Example"
Query
method of the
processRequest
processRequest
CustomTag
attribute.
debug
method of the
CustomTag

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents