Home

JSP and Beyond

a pragmatic primer on building web-based solutions with Java technologies


Coldfusion Markup Language (CFM)

Coldfusion and Coldfusion Markup Language were big stars during the .COM boom because due to the simplicity of the syntax, they provided a platform for quick development of web applications for those with little programming experience. Made available in 1997 the language still has a strong following.

ColdFusion MX 7 now runs on a Java Application Server, but older versions ran on an application server developed in C++ which gave Coldfusion a reputation for poor performance. Coldfusion Markup has the distinction of being a completely tag-based language. Interestingly enough,it has some similarities to Java Server Tag Language, or JSTL, allowing developers to quickly build applications with a tag-based framework that has been specifically designed for web application development. For instance, the sample below illustrates how an email could be sent from Coldfusion. As you will notice later in this book, JSTL is very similar to Coldfusion Markup.

<cfmail from=”jspbeyond@example.com” to=”recipientemail@jspbeyond.com” subject=”An Email from JSP Beyond” server=”mail.jspbeyond.com”>
Sample Email Body Here
</cfmail>

CFM Hello World

<cfset message = “Hello World”>
<cfoutput> #message#</cfoutput>

Drawbacks of CFM
Depth – Coldfusion does not have the depth that a more complete stack like .NET or Java has. However, it is possible to have some interaction with a Servlet using a special tag.

Scalability – Coldfusion has received a reputation for scalability problems. However, now that Coldfusion has been designed to run within a J2EE container, it has enhanced scalability compared with prior versions.