10.5. Using Applets with <cfapplet>
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:
1. |
Write the applet, likely using members of the javax.swing package.
|
2. |
Register it with the Java Applets section of the ColdFusion Administrator.
|
3. |
Call it using the <cfapplet> tag inside or outside of a <cform>.
|
10.5.1. Registering Your Applet
Here's how to register a Java applet in the ColdFusion Administrator:
1. |
Go to Extensions > Java Applets.
|
2. |
Click Register New Applet.
|
3. |
Fill out the form with the required information.
|
Figure 10.5 shows what the ColdFusion Administrator needs for you to register ...
Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.