Certified ColdFusion Developer Study Guide

Certified ColdFusion Developer Study Guide

Paperback

$37.89 $45.00 Save 16% Current price is $37.89, Original price is $45. You Save 16%.

Overview

The book will not teach ColdFusion, it will be a review guide and will provide helpful pointers for examinees. The book will look non-intimidating yet thorough, and will be highly readable in small bite-sized chunks.

Each subject will be presented in clear and direct language, with useful and well explained code examples. Sample questions will accompany each subject, as will references to recommended reading (Allaire documentation, Allaire course work, and existing MCP ColdFusion books).

Product Details

ISBN-13: 9780789725653
Publisher: Pearson Education
Publication date: 03/23/2001
Pages: 378
Product dimensions: 6.02(w) x 8.98(h) x 0.88(d)

About the Author

Bon Forts is the Allaire Corporation Product Evangelist for the ColdFusion product line, Ben co-authored the official Allaire Coldfusion training courses, write,, regular columns car, ColdFusion and Internet development and now spends as considerable amount of tune lecturing and speaking. tic is the author of two of the test-selling kooks on Coldfusion- ColdFusion 4.0, Web Application Construction Kit and Advanced ColdFusion 4.0 Development-as well as books on Allaire Spectra, JSP, WAP, SOL, and more. Ben is reconized and a trusted name among the ColdFusion developer community

Read an Excerpt

Chapter 1: Web Technology and Terminology

The Basics

Effective ColdFusion development requires a solid understanding of Internet and Web concepts, terms, and technologies. So, in this first chapter, we'll start with a brief review of these.

The Internet

The Internet is simply the world's biggest computer network. It connects millions of hosts (computers, servers, devices, and so on) to each other so that they can communicate and interact.

The Internet is not a physical entity, nor is it any particular host or set of hosts. You could never point to a machine and identify it as the Internet, nor could you ever turn the Internet on or off. The Internet is a living entity. and one that is evolving and changing all the time.

IP

The Internet is held together by 1P, the Internet Protocol, and every host connected to the Internet must be running a copy of IP.

IP requires that every host have a unique address by which to identify it. The unique identifiers are IP addresses that (in the current version of IP) are made up of four sets of numbers separated by periods-for example, 208. 193.16.250. Some hosts have fixed (or static) 1P addresses; others have dynamically assigned addresses. Regardless of how an IP address is obtained, no two hosts connected to the Internet may use the same IP address at any given time. (The exception to this rule is addressing used on private networks, which need just be unique within that network.)

DNS

IP addresses are the only way to uniquely specify a host. When you want to communicate with a host-for example, a Web server-you must specify the IP address of the Web server you're trying to contact. Similarly, when you connect to an FTP server, or specify the SMTP and POP servers in your mail client, you must specify the name of the host to which you want to connect. As you know from browsing the Web, you rarely specify IP addresses directly. You do, however, specify a host name, such as www.forta.com. If hosts are identified by IP address, how does your browser know which Web server to contact if you specify a host name`?

The answer is the Domain Name Service (DNS), a mechanism that maps host names to IP addresses. When you specify the destination address of www.forta.com, your browser sends an address resolution request to a DNS server asking for the IP address of that host. The DNS server returns an actual IP address--in this case, 208. 193.16. 250. Your browser can then use this address to communicate with the host directly.

DNS is never required. Users can always specify the name of a destination host by its IP address to connect to the host. There are, however, some very good reasons not to use the IT address:

  • IP addresses are hard to remember and easy to mistype. Users are more likely to find www.forta.com than they are 208.193.16.250.
  • IP addresses are subject to change. For example, if you switch service providers, you might be forced to use a new set of IT addresses for your hosts. If users identified your site only by its IP address, they never could reach your host if the IP address changed. Your DNS name stays the same, even if your IP address switches. You need to change only the mapping so that the host name maps to the new correct IP address.
  • Multiple hosts, each with unique IP addresses, can all have the same DNS name. This allows load balancing between servers, as well as the establishment of redundant servers.
  • A single host, with a single IP address, can have multiple DNS names. This enables you to create aliases if needed. For example, ftp. forta. com and www. forta. com might point to the same IP address, and thus the same server.

The World Wide Web

The Web is what put the Internet on the map, and made it a household word. Many people mistakenly think the Internet is the Web. The truth, however, is that the Web is merely an application that sits on top of the Internet. The Web is built on the Hypertext Transfer Protocol (HTTP). HTTP is designed to be a small, fast protocol that is well suited for distributed multimedia information systems and hypertext jumps between sites.

Information on the Web is stored in pages. A page can contain any of the following:

Each Web page is an actual file saved on a host. When a Web page is requested, the file containing the Web page is read and its contents are sent to the host that asked for it.

A Web site is simply a collection of Web pages along with any supporting files (such as GIF or JPG graphics). Creating a Web site thus involves creatin- one or more Web pages and linking them. The Web site is then saved on a Web server.

Web Servers

The Web consists of pages of information stored on hosts running Web-server software. The host is often referred to as the Web server which is technically inaccurate. The Web server is actually software and not the computer itself. Versions of Web server software can run on almost all computers, and although most Web server applications do have minimum hardware requirements, no special computer is needed to host a Web server.

Originally, Web development was all performed under different flavors of UNIX. Most Web servers still run on UNIX boxes, but this is changing. There are now Web-server versions for almost every major operating system. Web servers hosted on high-performance operating systems, such as Windows NT, are becoming more and more popular because UNIX is still more expensive to run than Windows NT and is also more difficult to use for the average user. Windows NT (and especially Windows 2000) has proven itself to be an efficient, reliable, and cost-effective platform for hosting Web servers. As a result, Windows NT's slice of the Web server operating system pie is growing dramatically. So, what exactly is a Web server? It's a program that serves up Web pages upon request. Web servers typically don't know or care what they're serving. When a user at a specific IP address requests a specific file (a Web page), the Web server tries to retrieve that file and send it back to the user. The requested file might he the HTML source code for a Web page. a GIF image, VRML, worlds...

Table of Contents

(NOTE: Each Chapter ends with Summary and Sample Questions.)

I. THE BASICS.

1. Web Technology and Terminology.
The Basics. The Internet.
IP. DNS.
The World Wide Web.
Web Servers. Web Browsers.
Application Servers. ColdFusion Fundamentals.
How ColdFusion Works.

2. Working with Variables and Expressions.
What Are Variables and Expressions? Variables and Type. Variable Prefixes.
Reason One to Use Prefixes: Performance. Reason Two to Use Prefixes: Avoiding Ambiguity. A Reason Not to Use Prefixes: Flexibility.
Creating Local Variables. Using Local Variables. Variables and the Request Scope. Functions.
Nested Functions. Functions with Masks.
Strings.
Constant String Manipulation. Regular Expression String Manipulation.

3. Conditional Processing.
What Is Conditional Processing? Performing Conditional Processing.
. . Nested Statements. More Details of Boolean. Expressions.
Conditional Statements.
. IsDefined(). Hidden Form Controls.

4. Looping.
What Is Looping?
Index. Conditional. Query. List. Collection.
Using with .
Nested Loops.

5. Redirects and Reuse.
Redirects. Using Redirection.
HTTP Headers.
Using HTTP Headers. Reuse.
Reuse and Including Files. ColdFusion Mappings. Web ServerMappings. Variable Scoping and .
Generating Non-HTML Content.

6. The Application Framework.
What Is the Application Framework?
Application.cfm. OnRequestEnd.cfm. Multiple Application.cfm Files.

7. Using Databases.
How to Connect to Databases.
Adding a Datasource.
Connecting to the Database. Simplified Database Connectivity. Displaying Data.
Grouping Data with .

II. VARIABLES AND EXPRESSIONS.

8. URL Variables.
What Is a URL Variable? How Are URL Variables Created?
Passing Multiple Variables at Once. Passing Complicated Strings.
What Is the Scope of a URL Variable? Using URL Variables.
Dynamic.

9. FORM Variables.
What Is a FORM Variable? How Are FORM Variables Created? Building Database-Driven Form Elements. Server-Side Validation. Client-Side Validation. What Is the Scope of a FORM Variable? The Action Page.

10. APPLICATION and SERVER Variables.
Understanding APPLICATION and SERVER Variables. APPLICATION Variable Scope. Creating APPLICATION Variables. Creating SERVER Variables.

11. Session State Management.
What Is Session State Management? Cookies.
Making Cookies. Using Cookies. A Cookie's Scope.
SESSION Variables.
Preparing to Use SESSION Variables. Using SESSION Variables. Creating SESSION Variables.
CLIENT Variables.
Preparing CLIENT Variable Storage. Creating CLIENT Variables. Using CLIENT Variables.
Which Variables Should I Use?

12. Locking.
Understanding Locking. Locking Strategies. Attributes.
Using the NAME Attribute. Using the SCOPE Attribute. READONLY Locks.
Server-Based Settings.
Option 1 (No Checking Done by ColdFusion Server). Option 2 (Full Checking Done by ColdFusion Server). Option 3 (Automatic Read Locking).
Dealing with Deadlocks.

III. DATA TYPES.

13. Lists.
Understanding Lists. Working with Lists.
Creating Lists. Accessing List Elements. Modifying Lists. Specifying Delimiters.
Using Lists.
When to Use Lists (and When Not To). Sorting Lists. Looping Through Lists. Nested Lists. Special Lists.

14. Arrays.
Understanding Arrays.
When to Use Arrays. When Not to Use Arrays.
Using Arrays.
Creating Arrays. Populating Arrays. Converting Between Arrays and Lists. Printing Array Values. Empty Array Indexes. Arrays and Memory. Compressing Arrays.
Multidimensional Arrays.
Two-Dimensional Arrays. Three-Dimensional Arrays. Looping Over and Printing Multidimensional Arrays.

15. Structures.
Structures Defined.
When to Use Structures. Creating Structures.
Types of Structures. Looping Over Structures. Internal Structures. Combining Complex Data.
Arrays of Structures. Structures of Arrays. Structures of Structures.
Structures as Pointers. Referring to Queries Using Structure and Array Syntax.

IV. ADVANCED COLDFUSION.

16. Scripting.
.
Benefits of . Drawbacks of .
Variable Assignment. Conditional Processing.
IF Examples. SWITCH/CASE Examples.
Looping.
FOR Loop. WHILE Loop. DO-WHILE Loop. FOR-IN Statement.
Invoking Objects.

17. Dynamic Functions.
Using Dynamic Functions.
IIf(). DE(). Evaluate().

18. Stored Procedures.
Using Stored Procedures. Versus . Using .
. .
Multiple Recordsets.

19. Transactions.
Using Transactions.
Locking. Isolation.
. Controlling Commits.
COMMIT. ROLLBACK.

20. Debugging.
Debugging Overview. Exposed Information.
Performance Monitoring. Stack Trace. Show Variables. Show Processing Time. Detail View. Show SQL and Datasource Name. Show Query Information. Display Template Path.
Manual Debugging. ColdFusion Studio Debugger. Log Files.

21. Error Handling.
Understanding ColdFusion Error Handling.
Request” >. Validation” >.
Exception Handling.
/. . .
and Exceptions.
Exception” >. Monitor” >.
and Together. Sitewide Error Handler. Missing Template Handler.

V. EXTENDING COLDFUSION.

22. Custom Tags.
What Is a Custom Tag? Why Use Custom Tags? Simple Custom Tags. Calling Custom Tags.
Simple Syntax (CF_). .
Attributes. Caller Scope.

23. Advanced Custom Tags.
What Are Advanced Custom Tags? Tag Pairs. ThisTag Scope.
ThisTag.ExecutionMode. ThisTag.HasEndTag. ThisTag.GeneratedContent.
Child Tags. Custom Tag Functions.
GetBaseTagList(). GetBaseTagData().
.

24. COM, CORBA, CFX, and Java.
Extending CF with Other Technology. Working with Components and .
COM and DCOM. CORBA. Java Objects and EJB.
CFX.
Java. JSP. .

25. WDDX.
XML Overview. XML and WDDX. CFWDDX. Using WDDX with Other Technology.

VI. SERVICES AND PROTOCOLS.

26. Full Text Searching.
Understanding Full Text Searching. Verity Collections.
Creating and Indexing Collections. Maintaining Collections. Optimizing Collections.
Creating a Search Interface.

27. System Integration.
Server File Management.
Working with Files. Uploading Files to the Server. Delivering Files from the Server. Working with Directories.
Registry Integration. Executing from the Command Line.

28. Scheduling and Event Execution.
Scheduling Events in ColdFusion.
Scheduling a Task. Publishing to Static Pages. Logging Scheduled Events.
Alternative Scheduling Options.

29. Email Integration.
Sending Mail with ColdFusion.
Sending Simple Text Email. Sending HTML Email.
Query-Driven Email.
Sending File Attachments. Additional Mail Headers.
Retrieving POP Mail.
POP Dates. File Attachments. Deleting Mail.
Troubleshooting ColdFusion Mail.

30. LDAP.
Understanding LDAP. Connecting to LDAP.

31. Other Internet Protocols.
Using HTTP Agents.
Creating HTTP Agents. Remote Data File Queries. Troubleshooting HTTP Agents. Page Scraping. Back-End Pages and Robots.
FTP Agents.

VII. DATABASES.

32. Basic SQL.
Database Basics. The SELECT Statement.
Specifying the Data to Retrieve. Specifying the Table. Filtering. Sorting.
The INSERT Statement. The UPDATE Statement. The DELETE Statement.

33. Joins.
Understanding Relational Database Design. Understanding Joins.
Basic Join Syntax. Inner Joins. Outer Joins. Self-Joins.
Sample Questions.

34. Aggregates.
Understanding Aggregate Functions. Using Aggregate Functions.
Handling NULL Values. Processing Distinct Values.
Grouping Results. Filtering Results.

35. Advanced Database Features.
Constraints.
Unique Constraints. Check Constraints.
Understanding Indexes. Stored Procedures. Triggers. Bind Parameters.

36. Improving Performance.
Eliminating Unnecessary Database Access.
Variable-Based Query Caching. Query Result Caching.
Reducing Data Transfer Time.

VIII. TUNING AND OPTIMIZATION.

37. Application Performance Tuning and Optimization.
Employing Effective ColdFusion Coding.
Different Variable Scopes and Performance. Don't Nest , and Unless Absolutely Necessary. Versus Multiple Tags. Optimize Conditional. Expressions in . Unnecessary Dynamic Expression Evaluation. Code Reuse: Versus Custom Tags. Type Your Variables When Performance Counts. Use Variable Prefixes.
Don't Do the Database's Job with ColdFusion. Enforcing Strict Attribute Validation. Using . Measuring Performance.
Execution Time. Exploded Benchmarking. Using GetTickCount().
Finding Bottlenecks.

38. Server Performance Tuning.
OS. Web Server. Application Server. Separate Servers for Separate Tasks. Specific Tuning Techniques (CF Admin Settings).
Template Cache/P-Code Caching. Trusted Cache. Simultaneous Requests.
Monitoring Server Performance.
Performance Monitor. CFSTAT.

IX. APPENDIX.

Appendix A. Answers.
Chapter 1. Chapter 2. Chapter 3. Chapter 4. Chapter 5. Chapter 6. Chapter 7. Chapter 8. Chapter 9. Chapter 10. Chapter 11. Chapter 12. Chapter 13. Chapter 14. Chapter 15. Chapter 16. Chapter 17. Chapter 18. Chapter 19. Chapter 20. Chapter 21. Chapter 22. Chapter 23. Chapter 24. Chapter 25. Chapter 26. Chapter 27. Chapter 28. Chapter 29. Chapter 30. Chapter 31. Chapter 32. Chapter 33. Chapter 34. Chapter 35. Chapter 36. Chapter 37. Chapter 38.

Index.

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews