To complete the comparison of ColdFusion and J2EE (Java 2, Enterprise Edition), let's first clear up some misconceptions about this integration and what it affords the ColdFusion developer:
The same ColdFusion application can include a mix of ColdFusion templates, servlets, and JSPs.
ColdFusion pages can include servlets and JSPs.
ColdFusion pages can forward control to servlets and JSPs.
Pages written in CFML or JSP can share data in persistent scopes such as session and application.
ColdFusion pages can import a tag library written in JSP and use the tags in it. We will see how to do this shortly.
You cannot write Java programming language code directly in a Cold-Fusion template.
ColdFusion MX templates are not JSPs.
ColdFusion MX does not Java use types for variables .
In Chapter 10 we saw how to integrate ColdFusion with Java technology using CFX tags and Java applets. We will now look at how to write a JavaServer Pages tag library and use it in your JSP and ColdFusion applications. But first we need to figure out JSP. Along the way, we will also look at how to perform the include, forward, and referencing capabilities mentioned above.
Top |