Interface Response; Method Detail - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 18: Building Custom CFAPI Tags
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 Summary
Query
addQuery(String name, String[]
columns)
void
setVariable(String name, String value)
void
write(String output)
void
writeDebug(String output)

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
setVariable
public void setVariable(String name,
— Text to output
String value)
throws IllegalArgumentException
Adds a query to the calling template.
Sets a variable in the calling template.
Outputs text back to the user.
Writes text output into the debug stream.
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents