MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual page 313

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 18: Building Custom CFAPI Tags
DebugResponse
you to print the results of a request once it has completed.
DebugQuery
initialize a query with a name, columns, and a data set.
To use the debugging classes:
1.
Create a
testbed for your CFX.
2.
Within the
DebugQuery
test.
3.
Create an instance of your Java CFX and call its
in the
4.
Call the
request, including content generated, variables set, queries created, and so forth.
Once you have implemented a main method as described above, you can debug your
Java CFX using an interactive, single-step debugger. Just specify your Java CFX class as
the
main
Debugging Classes Example
The following example demonstrates the use of the debugging classes.
import java.util.Hashtable ;
import com.allaire.cfx.* ;
public class OutputQuery implements CustomTag
{
// debugger testbed for OutputQuery
public static void main(String[] argv)
{
try
{
— An implementation of the
— An implementation of the
method for your Java CFX class. This method will be used as the
main
method, initialize a
main
if appropriate, with the attributes and data you want to use for your
and
DebugRequest
DebugResponse
DebugResponse.printResults
class, set breakpoints as appropriate, and begin debugging.
// initialize attributes
Hashtable attributes = new Hashtable() ;
attributes.put( "HEADER",
attributes.put( "BORDER", "3" ) ;
// initialize query
String[] columns =
{ "FIRSTNAME", "LASTNAME", "TITLE" } ;
String[][] data =
{ "Stephen", "Cheng", "Vice President" },
{ "Joe", "Berrey", "Intern" },
{ "Adam", "Lipinski", "Director" },
{ "Lynne", "Teague", "Developer" } }
Response
interface that enables you to
Query
and
DebugRequest
processRequest
objects.
method to output the results of the
"Yes" ) ;
{
287
interface that enables
, and a
DebugResponse
method, passing
;

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents