Embedding Java applets

The cfapplet tag lets you embed Java applets either on a ColdFusion page or in a cfform tag. To use the cfapplet tag, you must first register your Java applet using the ColdFusion MX Administrator Java Applets page (under Extensions). In the ColdFusion MX Administrator, you define the interface to the applet, encapsulating it so that each invocation of the cfapplet tag is very simple.

The cfapplet tag within a form offers several advantages over using the HTML applet tag:

When an applet is registered, you enter just the applet source and the form variable name:

<cfapplet appletsource="Calculator"
name="calc_value">

By contrast, with the HTML applet tag, you must declare all the applet's parameters every time you want to use it in a ColdFusion page.

This section describes the following topics:


View comments in LiveDocs