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
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...