Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 747

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Registering a Java applet
Before you can use a Java applet in your ColdFusion pages, register the applet in the ColdFusion Administrator.
Open the ColdFusion Administrator by clicking the Administrator icon in the ColdFusion Program group and
1
entering the Administrator password.
Under Extensions, click Java Applets.
2
The Java Applets page appears.
3
Click the Register New Applet button.
The Add/Edit Applet page appears.
4
Enter options in the applet registration fields, as described in the ColdFusion Administrator online help. Use the
Add button to add parameters.
5
Click Submit.
Using the cfapplet tag to embed an applet
After you register an applet, you can use the
has two required attributes:
parameter with a default value, you can run the applet with a simple form of the
<cfapplet appletSource="appletname" name="form_variable">
Overriding alignment and positioning values
To override any of the values defined in the ColdFusion Administrator for the applet, you can use the optional
parameters to specify custom values. For example, the following
cfapplet
alignment values:
<cfapplet appletSource="myapplet"
name="applet1_var"
height=400
width=200
vspace=125
hspace=125
align="left">
Overriding parameter values
You can override the values that you assigned to applet parameters in the ColdFusion Administrator by providing new
values for any parameter. To override a parameter, you must have already defined the parameter and its default value
in the ColdFusion Administrator Applets page. The following example overrides the default values of two parameters,
Param1 and Param2:
<cfapplet appletSource="myapplet"
name="applet1_var"
Param1="registered parameter1"
Param2="registered parameter2">
Handling form variables from an applet
The
tag
attribute corresponds to a variable in the action page, Form.appletname, which holds any value
cfapplet
name
that the applet method returns when it is executed in the
tag to place the applet in a ColdFusion page. The
cfapplet
and
. Because you registered the applet and you defined each applet
appletsource
name
Last updated 1/20/2012
cfapplet
tag specifies custom spacing and
cfapplet
tag.
cfform
742
tag
cfapplet
tag:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents