User Guide

Table Of Contents
Embedding Java applets 657
Handling form variables from an applet
The
cfapplet tag name attribute corresponds to a variable in the action page, Form.appletname,
which holds any value that the applet method returns when it is executed in the
cfform tag.
Not all Java applets return values. For instance, graphical widgets might not return a specific
value. For this type of applet, the method field in the ColdFusion MX Administrator remains
empty, but you must still provide a
cfapplet name attribute.
You can only use one method for each applet that you register. If an applet includes more than
one method that you want to access, you can register the applet with a unique name for each
additional method you want to use.
To reference a Java applet return value in your application page:
1.
Specify the name of the method in the Add/Registered Java Applet page of the ColdFusion MX
Administrator.
2.
Specify the method name in the name attribute of the cfapplet tag.
When your page executes the applet, ColdFusion creates a form variable with the name that you
specified. If you do not specify a method, ColdFusion does not create a form variable.