Chapter 10: Building Dynamic Forms
145
•
Parameter options — You can override parameter values you defined in the
Administrator by specifying the parameter value pair in CFAPPLET. Unless
overridden, ColdFusion uses the parameter value pairs you defined in the
Administrator.
When an applet is registered, enter just the applet source and the form variable name:
<CFAPPLET APPLETSOURCE="Calculator"
NAME="calc_value">
By contrast, with the HTML APPLET tag, you'd have to invoke all the applet's
parameters every time you wanted to use it in a ColdFusion page.
Registering a Java applet
Before you can use a Java applet in your ColdFusion pages, you must first register the
applet in the Administrator.
To register a Java applet:
1.
Open the ColdFusion Administrator by clicking on the Administrator icon in the
ColdFusion Program group and entering the Administrator password (if required).
2.
Click the Applets button to open the Registered Applets page.
3.
Enter a name for the applet you want to register and click Register New Applet.
Enter the information your applet requires, and choose the height, width, vertical
and horizontal space, and alignment you want.
Applet registration fields are explained in the following table.
Applet Registration Fields
Field
Description
Codebase
Enter the base URL of the applet: the directory that
contains the applet components. The applet class files
must be located within the web browser root directory.
Example:
http://
servername/classes
Code
This is the name of the file that contains the applet
subclass. The filename is relative to the codebase URL.
The *.class file extension is not required.
Method
Enter the method name in the applet that returns a
string value. You use this method name in the NAME
attribute of the CFAPPLET tag to populate a form
variable with the method’s value. If the applet has no
method, leave this field blank.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...