Given by Chao Wei Ou at ARL Database Tutorial on February 98. Foils prepared 26 Jan 98
Outside Index
Summary of Material
This describes Cold Fusion technology for linking databases with the Web |
What and Why is ColdFusion? |
Architecture |
Features |
Tag Language |
Database and File Capabilities |
Examples |
Advanced Features |
Outside Index Summary of Material
Instructor: Nancy McCracken |
Prepared by Chao Wei Ou |
Syracuse University |
NPAC |
111 College Place |
Syracuse NY 13244 4100 |
Phone: 3154432163 |
This describes Cold Fusion technology for linking databases with the Web |
What and Why is ColdFusion? |
Architecture |
Features |
Tag Language |
Database and File Capabilities |
Examples |
Advanced Features |
Cold Fusion uses a page-based application architecture and powerful server-side markup language so it seamlessly integrates with HTML and existing Web technology. |
Cold Fusion is significantly faster and more powerful than first generation CGI or Perl application development |
With Cold Fusion, companies are creating cross platform applications in a variety of different areas:
|
Cold Fusion offers seven major areas of features:
|
Cold Fusion provides many benefits to Web application development:
|
The server-side Cold Fusion Markup Language (CFML) provides a flexible environment for rapid application development. |
CFML is based on tags, so it seamless integrates with HTML. CFML tags encapsulate complex server processes like database interaction or sending e-mail so you don't have to write complicated code. |
At the same time, CFML offers all of the advanced development functionality you expect from an application programming environment. CFML gives you the ability to quickly develop and easily maintain sophisticated Web applications. |
Array Functions |
Date and Time Functions |
Decision Functions |
Display and Formatting Functions |
Dynamic Evaluation Functions |
List Functions |
Mathematical Functions |
Other Functions |
String Functions |
System Functions |
Query Functions |
Alphabetical List of Functions |
<CFIF expression> HTML and CFML tags |
<CFELSE> HTML and CFML tags |
</CFIF> |
<CFLOOP INDEX="parameter_name FROM="beginning_value"TO="ending_value"STEP="increment"> |
<!-- HTML or CFML code to execute --> |
</CFLOOP> |
<CFSET mynewarray = ArrayNew(x)> |
Example:
|
Multi-Dimensional Array:
|
URL Accessing
|
Form Accessing
|
CFCookies
|
CGI Environments - CGI.varname |
varname:SERVER_NAME, SERVER_PROTOCOL, SERVER_PORT, etc. |
CFINCLUDE
|
CFMODULE can help deal with any custom tag name conflicts that might arise.
|
Custom CFML Tags |
High level support for database and file system interactions frees you to create everything from simple dynamic pages to powerful database Web applications. |
Connect your applications to any ODBC compliant relational database including Microsoft Access, SQL Server, Oracle and many others. Use advanced functionality including any SQL statement, stored procedures, transaction processing, and dynamically built SQL queries. |
Easily add file uploading and file management capabilities to your applications. Intelligently index and search content in text files and relational databases with the embedded full text searching technology from Verity. |
Selecting Data:
|
<CFQUERY NAME="EmployeeList"
|
SELECT * FROM Employees |
</CFQUERY> |
Displaying data:
|
<CFOUTPUT QUERY="EmployeeList"> |
<HR> |
#FirstName# #LastName# (Phone: #PhoneNumber#) <BR> |
</CFOUTPUT> |
<HR> |
John Smith (Phone: 507-452-7224) <BR> |
<HR> |
Deborah Jones (Phone: 612-227-1019) <BR> |
<HR> |
Frank Wilson (Phone 612-831-9555) <BR> |
Select one or more companies to get more information on:
|
In other CFM page includes the following SQL statement
|
Actual statement to be sent to database:
|
CFFILE
|
Example
|
<CFREPORT REPORT="report_path" |
ORDERBY="result_order" |
USERNAME="username" |
PASSWORD="password"> |
</CFREPORT> |
Example |
<CFREPORT REPORT="#GetDirectoryFromPath(CF_TEMPLATE_PATH) #EMPLOYEES.rpt"> |
{Employees.Department} IN "#FORM.Departments#" |
</CFREPORT> |
Integrated support for Internet Technologies
|
Dynamic Java Forms
|
Complete Application Framework |
Web Server Security Integration |
Client State Management - CFCookie |
Application Framework - CFApplication, CFParam |
Customize Error Messages - CFError |
Extensive Debugging Information |
Open Extensible Architecture |
Custom Tags - CFModule, Encrypting Custom Tags |
ActiveX Server Components (COM) - CFObject |
Open API - CFXs |
Commerce - http://www.allaire.com/products/coldfusion/30/Example/ ExtranNar.cfm |
Business Systems - http://www.allaire.com/products/coldfusion/30/Example/ Intranar.cfm |
Interactive Publishing -http://www.allaire.com/products/coldfusion/30/Example/ HealthSearchnar.cfm |
Other Cold Fusion Sites - http://www.allaire.com/products/coldfusion/30/sites.cfm |