User Guide
784 Chapter 5: ColdFusion Java CFX Reference
write
Description
Outputs text back to the user.
Category
Response interface
Syntax
public void write(String output)
Parameters
Example
The following example outputs the value of the DESTINATION attribute:
response.write( "DESTINATION = " +
request.getAttribute("DESTINATION") ) ;
writeDebug
Description
Writes text output into the debug stream. This text is displayed to the end-user only if the tag
contains the debug attribute (check for this attribute using the
Request.debug member
function).
Category
Response interface
Syntax
public void writeDebug(String output)
See also
debug
Parameters
Example
The following example checks whether the debug attribute is present; if so, it writes a brief debug
message:
if ( request.debug() )
{
response.writeDebug( "debug info" ) ;
}
Parameter Description
output Text to output
Parameter Description
output The text to output