To register a Java Applet in ColdFusion, or to modify the registration fields of a Java applet in ColdFusion use the Add/Register Java applet page. To access the Add/Register Java applet page and register a Java applet or modify the registration of an existing Java applet, follow these steps:
If you are registering a new Java applet, install the Java class files and any other files required for the class. Note the install path because you will need to specify the codebase arguments when registering the applet.
To access the Add/Register Java applet page, do one of the following:
For new registration. Click Server>Java Applets>Register New Java Applet. The Add/Java Applet page appears.
For existing registration. Click Server>Java Applets. In the Java Applets page, click the name of the Java applet registration that you want to view or modify.
In the Add/Java Applet page, specify or modify the following information:
Option |
Description |
Applet Name |
In the text box, provide a name for the Java applet you are registering. |
Code |
In the text box, identify the name of the file that contains the applet subclass. This filename is relative to the codebase URL .The *.class file extension is not required. |
Code Base |
In the text box, provide the URL of the code base; the directory that contains the applet components. The applet class files must be located within the Web browser root directory. Example: http://<servername>/classes
Note This field is not required if the Java applet components are contained in a jar file. See the Archive option for more information. |
Archive (optional) |
If the Java applet components are stored in a jar file, enter the jar file name in the Archive text box. |
Method (optional) |
In the text box, specify the method name in the applet that returns a string value. This method name is used 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. |
Height Weight
|
|
Vspace Hspace
|
|
Align |
In the Align drop down list box, select an alignment option.. |
Java not supported message |
In the text box, specify a message that will be displayed by browsers that do not support Java applets. Note that you can override this message with a different message in the CFAPPLET tag NOTSUPPORTED attribute. |
Parameter Name |
In the text boxes, provide a name for each 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. |
Parameter Value |
In the text boxes, enter a default value for every parameter name specified. Your applet documentation will provide guidelines on valid entries. |
To save and apply the registration information, click Submit Changes.