User Guide

146 Developing Web Applications with ColdFusion
Click Create to complete the process.
Using CFAPPLET to embed an applet
Once you’ve registered an applet, you can use the CFAPPLET tag to place the applet in
a ColdFusion page. The CFAPPLET tag has two required attributes, APPLETSOURCE
and NAME. Since the applet has been registered, and each applet parameter defined
with a default value, you can invoke the applet with a very simple form of the
CFAPPLET tag:
<CFAPPLET APPLETSOURCE="
appletname
" NAME="form_variable">
Overriding alignment and positioning values
To override any of the values defined in the Administrator for the applet, you can use
the optional CFAPPLET parameters to specify custom values. For example, the
following CFAPPLET tag specifies custom spacing and alignment values:
Height Enter a measurement in pixels for the vertical space for
the applet.
Width Enter a measurement in pixels for the horizontal space
for the applet.
Vspace Enter a measurement in pixels for the space above and
below the applet.
Hspace Enter a measurement in pixels for the space on each
side of the applet.
Align Choose the alignment you want.
Java Not Supported Message This message is displayed by browsers that do not
support Java applets. If you want to override this
message, you specify a different message in the
CFAPPLET NOTSUPPORTED attribute.
Parameter Name Enter a name for a required applet parameter. Your Java
applet will typically provide the parameter name
needed to use the applet. Enter each parameter in a
separate parameter field.
Value For every parameter you enter, define a default value.
Your applet documentation will provide guidelines on
valid entries.
Applet Registration Fields (Continued)
Field Description