Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1131

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
About ColdFusion, Java, and J2EE
ColdFusion is built on a J2EE-compliant Java technology platform. This structure lets ColdFusion applications take
advantage of, and integrate with, J2EE elements. ColdFusion pages can do any of the following:
• Include JavaScript and client-side Java applets on the page.
• Use JSP tags.
• Interoperate with JSP pages.
• Use Java servlets.
• Use Java objects, including JavaBeans and Enterprise JavaBeans.
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
tag simplifies using Java client-side applets.
cfapplet
Use an applet on a ColdFusion page
Register the applet .class file in ColdFusion Administrator Java Applets Extensions page. (For information on
1
registering applets, see the ColdFusion Administrator online Help.)
2
Use the cfapplet tag to call the applet. The
ColdFusion 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>
About ColdFusion and JSP
ColdFusion supports JSP tags and pages in the following ways:
• Interoperates with JSP pages: ColdFusion pages can include or forward to JSP pages, JSP pages can include or
forward to ColdFusion pages, and both types of pages can share data in persistent scopes.
• Imports and uses JSP tag libraries: the cfimport tag imports JSP tag libraries and lets you use its tags.
ColdFusion pages are not JSP pages, however, and you cannot use most JSP syntax on ColdFusion pages. In particular,
you cannot use the following features on ColdFusion pages:
Include, Taglib, and Page directives: Instead, you use CFML
) method of the page context object returned by the ColdFusion
forward
For more information, see
"Using JSP tags and tag
servlets" on page 1129.
Expression, Declaration, and Scriptlet JSP scripting elements: Instead, you use CFML elements and expressions.
JSP comments: Instead, you use CFML comments. (ColdFusion ignores JSP comments and passes them to the
browser.)
attribute must be the Applet name assigned in the
appletSource
tag to import tag libraries, and the
import
libraries" on page 1128 and
Last updated 1/20/2012
function to include pages.
GetPageContext
"Interoperating with JSP pages and
1126
(or
include

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents