User Guide

Table Of Contents
Writing a Java CFX tag 263
ColdFusion processes the page and returns a page that displays the text “Hello, Les.” If an error is
returned instead, check the source code to make sure you have entered it correctly.
To delete a CFX tag in the ColdFusion MX Administrator:
1.
In the ColdFusion MX Administrator, select Extensions > CFX Tags to open the CFX Tags
page.
2.
For the tag you want to delete, click the Delete icon in the Controls column of the Registered
CFX Tags list.
Processing requests
Implementing a Java CFX tag requires interaction with the
Request and Response objects passed
to the
processRequest method. In addition, CFX tags that need to work with ColdFusion
queries also interface with the
Query object. The com.allaire.cfx package, located in the
WEB-INF/lib/cfx.jar archive, contains the
Request, Response, and Query objects.
This section provides an overview of these object types. For a complete description of these object
types, see Chapter 8, “ColdFusion Java CFX Reference,” in CFML Reference.
For a complete example Java CFX tag that uses
Request, Response, and Query objects, see
“ZipBrowser example” on page 264.
Request object
The
Request object is passed to the processRequest method of the CustomTag interface. The
following table lists the methods of the
Request object for retrieving attributes, including queries,
passed to the tag and for reading global tag settings:
For detailed reference information on each of these interfaces, see CFML Reference.
Method Description
attributeExists Checks whether the attribute was passed to this tag.
debug Checks whether the tag contains the debug attribute.
getAttribute Retrieves the value of the passed attribute.
getAttributeList Retrieves a list of all attributes passed to the tag.
getIntAttribute Retrieves the value of the passed attribute as an integer.
getQuery Retrieves the query that was passed to this tag, if any.
getSetting Retrieves the value of a global custom tag setting.