User Guide

Chapter 18: Building Custom CFAPI Tags 289
DebugQuery
// initialize a query with name and columns
public DebugQuery( String name, String[] columns )
throws IllegalArgumentException ;
// initialize a query with name, columns, and data
public DebugQuery( String name, String[] columns, String[][] data )
throws IllegalArgumentException ;
Java Customization and Configuration
You use the ColdFusion Administrator to customize your Java development
environment, such as customizing the Class Path, Java system properties, and
specifying an alternate JVM.
Implementing C++ CFX Tags
CFX tags built in C++ use the tag request object, represented by the C++ class
CCFXRequest. This object represents a request made from an application page to a
custom tag. A pointer to an instance of a request object is passed to the main
procedure of a custom tag. The methods available from the request object allow the
custom tag to accomplish its work. See the C++ CFX Reference” on page 293 for a
detailed description of the CFXAPI classes and members.
Implementing Java CFX Tags
Implementing a Java CFX requires interaction with the Request and Response objects
passed to the
processRequest method. In addition, CFXs that need to work with
ColdFusion queries will also interface with the
Query object. See the “Java CFX
Reference” on page 311 for a detailed description of CFX Java object types.
Registering CFXs
To use a CFX tag in your ColdFusion applications, first register it in the Extensions, CFX
Tags page in the ColdFusion Administrator.
To register the tag in the CF Administrator:
1. In the CF Administrator, open the Extensions > CFX Tags page.
2. Enter
CFX_MyNewTag in the Tag name and, optionally, a description.
3. Select the type of tag (either C++ or Java).
4. Click Add to open the New CFX Tag page.