| Contents > Developing ColdFusion MX Applications > Building Dynamic Forms > Embedding Java applets |
|
|
|
|
||
The cfapplet tag lets you embed Java applets either on a ColdFusion page or in a cfform. To use cfapplet, you must first register your Java applet using the ColdFusion MX Administrator Java Applets page (under Extensions). In the Administrator, you define the interface to the applet, encapsulating it so that each invocation of the cfapplet tag is very simple.
The cfapplet tag within a form offers several advantages over using the HTML applet tag:
cfapplet requires a form field name attribute, you can avoid coding additional JavaScript to capture the applet's return values. You can reference return values like any other ColdFusion form variable: Form.variablename.cfapplet tag in your pages only needs to reference the applet name and specify a form variable name.cfapplet.When an applet is registered, you enter just the applet source and the form variable name:
<cfapplet appletsource="Calculator"
name="calc_value">
By contrast, with the HTML applet tag, you must declare all the applet's parameters every time you want to use it in a ColdFusion page.
|
|
||
| Contents > Developing ColdFusion MX Applications > Building Dynamic Forms > Embedding Java applets |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/dynami30.htm
Comments
Haley said on Nov 15, 2004 at 12:23 PM :