The purpose of the <cfapplet> tag is to allow you to extend what you can do in a < cfform > and to use applets anywhere else you like in an application. There are three steps to using an applet:
Write the applet, likely using members of the javax.swing package.
Register it with the Java Applets section of the ColdFusion Administrator.
Call it using the <cfapplet> tag inside or outside of a <cform> .
Here's how to register a Java applet in the ColdFusion Administrator:
Go to Extensions > Java Applets.
Click Register New Applet.
Fill out the form with the required information.
Figure 10.5 shows what the ColdFusion Administrator needs for you to register your applet and make it available for use.
Once you're done, click Submit and your applet will be available for referencing. Note that these settings, as with many ColdFusion tags, are replicated closely in the <cfapplet> tag, and they can be supplied there.
Top |