94
Java Applets
The Java Applets page of the Administrator lets you register applets and modify and
delete applet registrations. Before you can use Java applets in your ColdFusion
applications, you must register them in the Java Applets page.
When your applet is registered with ColdFusion Server, using the
your CFML code is very simple, because all parameters are predefined. Simply enter
the applet source and the form variable name you want to use.
Note
Parameters set in the
page.
To register a Java applet:
1
2
cfapplet
On the Java Applets page, click Register New Applet. The Add/Registered Applet
page displays.
Enter options for the following settings:
Setting
Description
Applet Name
Applet name
Code
Name of the file that contains the applet subclass. Must be
relative to the code base URL. The class extension is optional.
Code Base
Base URL of the applet: directory that contains the applet
components. The applet class files must be located within the
Web server root directory, such as http://servername/classes
Archive
File name for the applet archive
Method
Method name in the applet that returns a string value. You use the
name in the NAME attribute of the
form variable with the method value. If the applet has no method,
leave this field blank.
Height
Applet height, in pixels
Width
Applet width, in pixel
VSpace
Measurement, in pixels, for the space above and below the applet
HSpace
Measurement, in pixels, for the space on each side of the applet
Align
Applet alignment
Not Supported
Message to display if the user's Web browser does not support
Message
Java applets. To override this message, specify a different one in
the
cfapplet
Parameter
Name for a required applet parameter, typically provided by the
Name
applet.
Value
Default value for parameter
Chapter 5 Basic ColdFusion Server Administration
tag override parameters defined in the Java Applets
tag notsupported attribute.
cfapplet
tag to populate a
cfapplet
tag in
Need help?
Do you have a question about the COLDFUSION 5 - INSTALING AND CONFIGURING SERVER and is the answer not in the manual?