Section 10.5. Using Applets with

   

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 your applet and make it available for use.

Figure 10.5. CFMX Java applet registration screen.

graphics/10fig05.jpg

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


Java for ColdFusion Developers
Java for ColdFusion Developers
ISBN: 0130461806
EAN: 2147483647
Year: 2005
Pages: 206
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net