Copyright © 2002 by Macromedia, Inc. All Rights Reserved.
ColdFusion includes several example Java CFXs which demonstrate common techniques used in creating CFXs.
The Java source files for the examples can be found in the examples
subdirectory of the main
installation directory. A brief description of each example follows:
Example | Description of tag |
HelloColdFusion |
Prints a personalized greeting. Demonstrates the most minimal implementation required to create a CFX. |
ZipBrowser |
Retrieves the contents of a zip archive. Demonstrates generating a ColdFusion query and returning it to the calling page. |
ServerDateTime |
Retrieves the date and time from a network server. Demonstrates attribute validation, using numeric attributes, and setting variables within the calling page. |
OutputQuery |
Outputs a ColdFusion query in an HTML table. Demonstrates handling a ColdFusion query as input, throwing exceptions, and generating dynamic output. |
HelloWorldGraphic |
Generates a "Hello World!" graphic in JPEG format. Demonstrates how to dynamically create and return graphics from a Java CFX. |