Notes
Outline
Unit 2: Introducing ColdFusion
Topics
Static Page Architecture
Dynamic Page Publishing with ColdFusion
ColdFusion Markup Language (CFML)
ColdFusion Components and Features
ColdFusion Configuration Scenarios
Static Page Architecture
A Web browser makes a request for a .htm page
A Web server sends that page back to the browser
The Web browser interprets and renders the HTML
Web Browsers
Request pages from Web servers using HTTP
Interpret HTML pages
Interpret client-side scripting languages
Validate user-supplied data with a scripting language
Execute Java applets and ActiveX controls
Decrypt Secure Sockets Layer (SSL) pages
Web Servers
Reply to requests from browsers using HTTP
Perform server-side processing using these languages:
ColdFusion Markup Language (CFML)
Microsoft’s Active Server Pages (ASP)
Perl
Java
Encrypt pages using Secure Sockets Layer (SSL)
Perform security and user authentication
Dynamic Page Publishing
If the requested page has a .cfm extension, it gets passed to ColdFusion for processing
Demonstration
Creating a Variable and Outputting Its Value on a Page
CFML
CFABORT
CFAPPLICATION
CFBREAK
CFCONTENT
CFCOOKIE
CFFORM and CFINPUT
CFIF, CFELSE, CFELSEIF
CFINCLUDE
CFINPUT
CFINSERT
CFLOCATION
CFOUTPUT
CFPARAM
CFQUERY
CFSET
CFSWITCH/CFSWITCHCASE/CFDEFAULTCASE
CFUPDATE
Client-Side Technologies
Any client-side technology is allowed
Client-side scripting such as JavaScript, Jscript and VBScript
Client-side executables such as ActiveX and Java applets
Dynamic HTML
Other client technologies
Other server-side technologies are not allowed
ColdFusion Components
ColdFusion Application Server
ColdFusion Studio
ColdFusion 4.0 Features
Advanced database connectivity using ODBC connections, native database drivers and OLE-DB.
Email generation and retrieval SMTP/POP
File management capabilities
Lightweight Directory Access Protocol (LDAP) server integration
ColdFusion's own API - CFAPI
COM and DCOM object support
Extensive set of tags and the ability to create custom tags
Hundreds of functions
ColdFusion Features
Supports expressions in queries, including regular expressions
Can be managed and administered from any Web browser anywhere
Offers scalable deployment through multi-threaded service, Web server API support and other technologies
Can be deployed on multi-server clusters with native load balancing and failover to deliver large volume sites
Provides the infrastructure for secure remote development across intranets and extranets
Best-of-Breed Web Technologies
ActiveX
COM/DCOM
CORBA
Cybercash
Macromedia Flash
HDML SDK
ICVerify
JavaBeans
Macromedia Dreamweaver
NetObjects Fusion
OpenMarket
Shockwave
SMIL
Verity SEARCH'97
Version Control Software
Server APIs
Windows NT
Netscape servers (NSAPI)
Microsoft servers (ISAPI)
O’Reilly’s WebSite (WSAPI)
Apache
Solaris
Netscape servers
Apache servers
Server API Processing
Each supported Web server API has a .dll which sets up communication from the Web server to the ColdFusion Application Server.
Basic Configuration
Database Server
Database on a separate machine
MS SQL Server, Oracle, Sybase, Informix, etc.
Test data
Development Server
Runs Web server and ColdFusion Server
Hosts Web site and ColdFusion templates
ColdFusion Studio Developers
Develop CFML and HTML pages
May do remote development via FTP or ColdFusion RDS
Can optionally run "stand-alone” ColdFusion Server
Enterprise Configuration
Development
Centralized server for main source code
Many developers remotely developing using ColdFusion Studio
Source code control system
Development database
Testing and Deployment
Clustered servers with latest release of code in a static environment
Many testers
Emulation of expected load
Static, predictable test database with sample data
Production
Clustered servers with last release of code
Connection to the intra/Internet
Live, production database
Summary
When a static page is requested, the Web server sends the page to the browser in the form of HTML.  The browser interprets the HTML and displays the page.
When a dynamic ColdFusion page is requested, the Web server passes the page to the ColdFusion server which processes the ColdFusion tags and sends the results back to the Web server as HTML.
ColdFusion is a server-side technology that lets you create dynamic Web pages and whole Web applications.
Summary (continued)
CFML is a server-side markup language that is similar in syntax to HTML.
ColdFusion components include the ColdFusion Application Server and ColdFusion Studio.