User Guide

Chapter 18: Building Custom CFAPI Tags 321
Returns:
Returns true if the tag contains the DEBUG attribute otherwise returns false.
See Also:
Response.writeDebug
Interface Response
public abstract interface Response
Interface to response generated from a CustomTag. This interface includes
methods for writing output, generating queries, and setting variables within the
calling page.
Method Detail
write
public void write(String output)
Outputs text back to the user.
The following example outputs the value of the DESTINATION attribute:
response.write( "DESTINATION = " +
request.getAttribute("DESTINATION") ) ;
Parameters:
output — Text to output
setVariable
public void setVariable(String name,
String value)
throws IllegalArgumentException
Method Summary
Query addQuery(String name, String[]
columns)
Adds a query to the calling template.
void setVariable(String name, String value)
Sets a variable in the calling template.
void write(String output)
Outputs text back to the user.
void writeDebug(String output)
Writes text output into the debug stream.