About ColdFusion, Java, and J2EE

Macromedia ColdFusion MX is built on a J2EE-compliant Java technology platform. This lets ColdFusion applications take advantage of, and integrate with, J2EE elements. ColdFusion pages can do any of the following:

This section describes the following topics:

About ColdFusion and client-side JavaScript and applets

ColdFusion pages, like HTML pages, can incorporate client-side JavaScript and Java applets. To use JavaScript, you write the JavaScript code just as you do on any HTML page. ColdFusion ignores the JavaScript and sends it to the client.

The cfapplet tag simplifies using Java client-side applets.

To use an applet on a ColdFusion page:

  1. Register the applet .class file in ColdFusion MX Administrator Java Applets Extensions page. (For information on registering applets, see the ColdFusion MX Administrator online Help.)
  2. Use the cfapplet tag to call the applet. The appletSource attribute must be the Applet name assigned in ColdFusion MX Administrator.

For example, ColdFusion includes a Copytext sample applet that copies text from one text box to another. The ColdFusion Setup automatically registers the applet in the Administrator. To use this applet, incorporate it on your page. For example:

<cfform action = "copytext.cfm">
   <cfapplet appletsource = "copytext" name = "copytext">
</cfform>

View comments in LiveDocs