Java Applet Registration

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:

 

  1. 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.

  2. To access the Add/Register Java applet page, do one of the following:

  1. 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

 

  • In the Height text box, enter a measurement, in pixels,  for the vertical space for the applet.

  • In the Weight text box, enter a measurement, in pixels,  for the horizontal space for the applet.

Vspace

Hspace

 

 

  • In the Vspace text box, enter a measurement in pixels for the space above and below the applet.

  • In the Hspace text box, enter a measurement in pixels for the space on each side of the applet.

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.

 

  1. To save and apply the registration information, click Submit Changes.

 

Related topics