Programming ColdFusion MX, 2/e
暫譯: ColdFusion MX 程式設計(第二版)

Rob Brooks-Bilson

  • 出版商: O'Reilly
  • 售價: $2,400
  • 貴賓價: 9.5$2,280
  • 語言: 英文
  • 頁數: 1000
  • 裝訂: Paperback
  • ISBN: 0596003803
  • ISBN-13: 9780596003807
  • 已過版

買這商品的人也買了...

商品描述

ColdFusion has enjoyed widespread use among developers as a powerful, easy-to-learn platform for creating and deploying dynamic web applications. ColdFusion's simple, tag-based language makes it easy to handle basic tasks, like processing form data and querying databases, but the language is also powerful enough to deliver highly scalable, robust applications. And now that Macromedia has integrated ColdFusion into its MX family of technologies, ColdFusion is capable of interacting with Flash MX applications, which opens up even more possibilities.

The first edition of this book has been praised as "the best reference book available on the subject." This new edition, Programming ColdFusion MX, 2nd Edition, goes even further, documenting new techniques for using ColdFusion MX 6.1 to develop and serve dynamic web page content. This exhaustive guide covers everything from the basics to advanced topics, with numerous examples that you can use for your own applications. Contents include:

  • Sharing application data using the web application framework and shared scope variables
  • Accessing databases, maintaining database records, and advanced database techniques such as drill-down queries, query caching, and query of queries
  • Integrating applications with ColdFusion MX's new security framework
  • Interacting with other data sources, including LDAP directories, email servers, and other web servers
  • Extending ColdFusion with user-defined functions (UDFs), custom tags, and ColdFusion Components (CFCs)
  • Advanced topics such as working with XML, consuming and producing web services, and integrating ColdFusion with Flash via Flash Remoting
  • Reference material for all the tags and functions that comprise CFML, the ColdFusion Markup Language


Programming ColdFusion MX, 2nd Edition, covers ColdFusion MX 6.1, the latest release of ColdFusion, and is packed with advanced strategies, insider hints, tips, and tricks for creating effective web applications. If you are a ColdFusion developer, you need this book to help you make the most out of ColdFusion MX.

Table of Contents

Preface

1. Introducing ColdFusion
     What Is ColdFusion?
     ColdFusion Architecture
     Getting Started with ColdFusion

2. ColdFusion Basics
     Getting Started
     Datatypes
     Variables
     Expressions
     Writing Output
     Conditional Processing
     Looping
     Including Other Templates

3. Passing Data Between Templates
     Passing Parameters Via URL
     Passing Data Using Forms
     Dealing with Nonexistent Parameters

4. Database Basics
     Configuring Data Sources
     Introducing cfquery
     A Quick SQL Primer
     Retrieving and Displaying Data
     Sorting Query Results
     Grouping Output
     Looping Over a Query Result Set
     Formatting Techniques

5. Maintaining Database Records
     Inserting Records
     Updating Existing Records
     Deleting Records

6. Complex Datatypes
     Lists
     Arrays
     Structures
     Query Objects

7. Maintaining State
     Setting Up the Web Application Framework
     Using Shared Scope Variables
     Browser Redirection
     Portal Example

8. Security
     Security Basics
     Implementing Security from Scratch
     Taking Advantage of ColdFusion MX's New Security Framework

9. Error and Exception Handling
     Basic Exception Handling
     Custom Exception Handling
     Rethrowing Exceptions
     Error Handling Within the Web-Application Framework
     Server-Wide Error Handling

10. Dynamic Form Controls
     Combining HTML and CFML Form Controls
     Basic Input Controls
     Textual Input
     A Selection Control
     Sliders
     Grids
     Trees
     Preserving Input
     Custom Controls

11. Advanced Database Techniques
     Display Techniques
     Drilldown Queries
     Query Caching
     Advanced SQL
     Query of Queries
     Calling Stored Procedures
     Transaction Processing

12. Manipulating Files and Directories
     Working with Directories
     Dealing with Files
     Performing FTP Operations
     Executing Command-Line Programs

13. Working with Email
     Sending Email
     Dealing with Undeliverable Email
     Retrieving Messages
     Building a Web-Based Email Client

14. Interacting with Other Web Servers Using HTTP
     Retrieving Information
     Parsing Data
     Generating Static HTML Pages
     Posting Information
     cfhttp Considerations

15. Interfacing with LDAP-Enabled Directories
     LDAP Basics
     Querying an LDAP Directory
     Modifying LDAP Entries
     Modifying the Distinguished Name

16. Working with the Verity Search Interface
     Creating Collections
     Populating Collections
     Searching Collections
     The Verity Search Language
     Updating Collections
     Maintaining Collections
     Advanced Techniques

17. Graphing and Charting
     Creating a Simple Graph
     Working with Dates
     Charting Dynamic Data
     Charting Multiple Data Series
     Drilling Down on Graph Data
     Saving Charts to a Variable
     Working with the Chart Cache

18. Regular Expressions in ColdFusion
     Regular-Expression Syntax
     Finding Strings
     Replacing Strings
     Backreferences
     Useful Regular Expressions
     Regular Expression Tester

19. Scripting
     Scripting Syntax
     Writing Output
     Flow Control and Looping
     Error and Exception Handling

20. User-Defined Functions
     UDF Basics
     Calling User-Defined Functions
     Advanced Topics
     Function Libraries
     Script-Based UDFs

21. Creating Custom Tags
     Getting Started
     Calling Custom Tags
     Passing Data
     Returning Data
     Attribute Validation and Error Handling
     Advanced Techniques
     Protecting Your Tags
     CFX Tags

22. ColdFusion Components
     Basic Concepts
     Creating Components
     Using Components
     Advanced CFC Topics

23. XML and WDDX
     Working with XML
     Using WDDX

24. Web Services
     Web Services Overview
     Consuming Web Services
     Producing Web Services
     Web Services Security

25. Working with the System Registry
     Getting Registry Keys and Values
     Setting Registry Keys and Values
     Deleting Registry Keys and Values

26. Using the ColdFusion Scheduler
     Scheduling Tasks with the ColdFusion Administrator
     Scheduling Tasks with cfschedule
     Additional Considerations

27. Interacting with COM, CORBA, and Java
     Working with COM
     Calling CORBA Objects
     Integrating ColdFusion and Java

28. Flash Remoting
     Getting Started with Flash Remoting for ColdFusion MX
     Interacting with ColdFusion Pages
     Interacting with ColdFusion Components
     Interacting with Server-Side ActionScript
     Flash Remoting with Java Objects Hosted on the ColdFusion MX Server

A. Tag Reference

B. Function Reference

C. Example Database Tables

D. ColdFusion Resources

Index

商品描述(中文翻譯)

ColdFusion 在開發者中廣泛使用,作為一個強大且易於學習的平台,用於創建和部署動態網頁應用程式。ColdFusion 簡單的標籤語言使得處理基本任務(如處理表單數據和查詢數據庫)變得容易,但該語言也足夠強大,可以提供高度可擴展和穩健的應用程式。現在,隨著 Macromedia 將 ColdFusion 整合到其 MX 技術系列中,ColdFusion 能夠與 Flash MX 應用程式互動,這開啟了更多的可能性。

本書的第一版被讚譽為「該主題上最好的參考書」。這一新版,Programming ColdFusion MX,第二版,進一步記錄了使用 ColdFusion MX 6.1 開發和提供動態網頁內容的新技術。這本詳盡的指南涵蓋了從基礎到進階主題的所有內容,並提供了許多可以用於自己應用程式的範例。內容包括:
- 使用網頁應用程式框架和共享範圍變數共享應用程式數據
- 訪問數據庫、維護數據庫記錄,以及進階數據庫技術,如深入查詢、查詢快取和查詢的查詢
- 與 ColdFusion MX 的新安全框架整合應用程式
- 與其他數據來源互動,包括 LDAP 目錄、電子郵件伺服器和其他網頁伺服器
- 使用自定義函數 (UDFs)、自定義標籤和 ColdFusion 組件 (CFCs) 擴展 ColdFusion
- 進階主題,如處理 XML、消費和生成網頁服務,以及通過 Flash Remoting 將 ColdFusion 與 Flash 整合
- 包含 CFML(ColdFusion 標記語言)所有標籤和函數的參考資料

Programming ColdFusion MX,第二版,涵蓋了 ColdFusion MX 6.1,這是 ColdFusion 的最新版本,並充滿了創建有效網頁應用程式的進階策略、內部提示、技巧和竅門。如果您是 ColdFusion 開發者,您需要這本書來幫助您充分利用 ColdFusion MX。

目錄

前言

1. 介紹 ColdFusion
- ColdFusion 是什麼?
- ColdFusion 架構
- 開始使用 ColdFusion

2. ColdFusion 基礎
- 開始使用
- 數據類型
- 變數
- 表達式
- 輸出寫入
- 條件處理
- 循環
- 包含其他模板

3. 在模板之間傳遞數據
- 通過 URL 傳遞參數
- 使用表單傳遞數據
- 處理不存在的參數

4. 數據庫基礎
- 配置數據源
- 介紹 cfquery
- 快速 SQL 入門
- 檢索和顯示數據
- 排序查詢結果
- 分組輸出
- 循環查詢結果集
- 格式化技術

5. 維護數據庫記錄
- 插入記錄
- 更新現有記錄
- 刪除記錄

6. 複雜數據類型
- 列表
- 陣列
- 結構
- 查詢對象

7. 維護狀態
- 設置網頁應用程式框架
- 使用共享範圍變數
- 瀏覽器重定向
- 入口範例

8. 安全性
- 安全性基礎
- 從零開始實施安全性
- 利用 ColdFusion MX 的新安全框架

9. 錯誤和例外處理
- 基本例外處理
- 自定義例外處理
- 重新拋出例外
- 在網頁應用程式框架內的錯誤處理
- 伺服器範圍的錯誤處理

10. 動態表單控制
- 結合 HTML 和 CFML 表單控制
- 基本輸入控制
- 文本輸入
- 選擇控制
- 滑桿
- 網格
- 樹狀結構
- 保留輸入
- 自定義控制

11. 進階數據庫技術
- 顯示技術
- 深入查詢
- 查詢快取
- 進階 SQL
- 查詢的查詢
- 調用存儲過程
- 交易處理

12. 操作文件和目錄
- 操作目錄
- 處理文件
- 執行 FTP 操作
- 執行命令行程序

13. 處理電子郵件
- 發送電子郵件
- 處理無法送達的電子郵件
- 檢索消息
- 建立基於網頁的電子郵件客戶端

14. 使用 HTTP 與其他網頁伺服器互動
- 檢索信息
- 解析數據
- 生成靜態 HTML 頁面
- 發送信息
- cfhttp 注意事項

15. 與 LDAP 啟用的目錄介面
- LDAP 基礎
- 查詢 LDAP 目錄
- 修改 LDAP 條目
- 修改區別名稱

16. 使用 Verity 搜索介面
- 創建集合
- 填充集合
- 搜索集合
- Verity 搜索語言
- 更新集合
- 維護集合
- 進階技術

17. 繪圖和圖表
- 創建簡單圖表
- 處理日期
- 繪製動態數據
- 繪製多個數據系列
- 深入圖表數據
- 將圖表保存到變數
- 操作圖表快取

18. ColdFusion 中的正則表達式
- 正則表達式語法
- 查找字符串
- 替換字符串
- 反向引用
- 有用的正則表達式
- 正則表達式測試器

19. 腳本編寫
- 腳本語法
- 輸出寫入
- 流程控制和循環
- 錯誤和例外處理

20. 自定義函數
- UDF 基礎
- 調用自定義函數
- 進階主題
- 函數庫
- 基於腳本的 UDF

21. 創建自定義標籤
- 開始使用
- 調用自定義標籤
- 傳遞數據
- 返回數據
- 屬性驗證和錯誤處理
- 進階技術
- 保護您的標籤
- CFX 標籤

22. ColdFusion 組件
- 基本概念
- 創建組件
- 使用組件
- 進階 CFC 主題

23. XML 和 WDDX
- 操作 XML
- 使用 WDDX

24. 網頁服務
- 網頁服務概述
- 消費網頁服務
- 生成網頁服務
- 網頁服務安全性

25. 操作系統登錄
- 獲取登錄鍵和值
- 設置登錄鍵和值
- 刪除登錄鍵和值

26. 使用 ColdFusion 課程排程器
- 使用 ColdFusion 管理員排程任務
- 使用 cfschedule 排程任務
- 其他考量

27. 與 COM、CORBA 和 Java 互動
- 操作 COM
- 調用 CORBA 對象
- 整合 ColdFusion 和 Java

28. Flash Remoting
- 開始使用 ColdFusion MX 的 Flash Remoting
- 與 ColdFusion 頁面互動
- 與 ColdFusion 組件互動
- 與伺服器端 ActionScript 互動
- 與在 ColdFusion MX 伺服器上托管的 Java 對象進行 Flash Remoting

A. 標籤參考

B. 函數參考

C. 示例數據庫表

D. ColdFusion 資源

索引