Sign In
Upload
Manuals
Brands
MACROMEDIA Manuals
Software
COLDFUSION MX 61-DEVELOPING COLDFUSION MX
MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Manuals
Manuals and User Guides for MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX. We have
1
MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX manual available for free PDF download: Develop Manual
MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual (860 pages)
Developing ColdFusion MX Applications
Brand:
MACROMEDIA
| Category:
Software
| Size: 6.83 MB
Table of Contents
Table of Contents
3
Introduction
23
Using this Book
24
About Macromedia Coldfusion MX Documentation
26
CHAPTER 1: Introduction to Coldfusion MX
27
About Internet Applications and Web Application Servers
28
About Web Pages and Internet Applications
28
About Web Application Servers
28
About Coldfusion MX
30
The Coldfusion Scripting Environment
30
Coldfusion Markup Language
30
Coldfusion Application Services
32
Coldfusion MX Administrator
32
Using Coldfusion MX with Macromedia Flash MX
32
About J2EE and the Coldfusion Architecture
33
About Coldfusion MX and the J2EE Platform
33
Coldfusion Features Described in this Book
34
CHAPTER 2: Elements of CFML
39
Introduction
40
Character Case
40
Tags
40
Tag Syntax
40
Built-In Tags
41
Custom Tags
41
Functions
42
Built-In Functions
42
User-Defined Functions
43
Expressions
43
Constants
44
Variables
44
Variable Scopes
44
Data Types
45
Coldfusion Components
46
Cfscript
46
Flow Control
47
Cfif, Cfelseif, and Cfelse
47
Cfswitch, Cfcase, and Cfdefaultcase
48
Cfloop and Cfbreak
48
Cfabort and Cfexit
50
Comments
50
Special Characters
50
Reserved Words
51
CHAPTER 3: Using Coldfusion Variables
53
Creating Variables
54
Variable Naming Rules
54
Variable Characteristics
55
Data Types
55
Numbers
56
Strings
57
Boolean Values
58
Date-Time Values
58
Binary Data Type and Base64 Encoding
60
Complex Data Types
61
Using Periods in Variable References
64
Understanding Variables and Periods
65
Creating Variables with Periods
66
Data Type Conversion
67
Operation-Driven Evaluation
67
Conversion between Types
67
Evaluation and Type Conversion Issues
69
Examples of Type Conversion in Expression Evaluation
71
About Scopes
72
Scope Types
72
Creating and Using Variables in Scopes
75
Using Scopes
77
Ensuring Variable Existence
78
Testing for a Variable's Existence
79
Using the Cfparam Tag
79
Validating Data Types
80
Using the Cfparam Tag to Validate the Data Type
81
Passing Variables to Custom Tags and Udfs
82
Passing Variables to CFML Tags and Udfs
82
Passing Variables to CFX Tags
82
CHAPTER 4: Using Expressions and Pound Signs
83
Expressions
84
Operator Types
84
Operator Precedence and Evaluation Ordering
87
Using Functions as Operators
87
Using Pound Signs
89
Using Pound Signs in Coldfusion Tag Attribute Values
89
Using Pound Signs in Tag Bodies
90
Using Pound Signs in Strings
90
Nested Pound Signs
91
Using Pound Signs in Expressions
91
Dynamic Expressions and Dynamic Variables
92
About Dynamic Variables
92
About Dynamic Expressions and Dynamic Evaluation
92
Dynamic Variable Naming Without Dynamic Evaluation
93
Using Dynamic Evaluation
94
Using the IIF Function
98
Example: a Dynamic Shopping Cart
99
CHAPTER 5: Using Arrays and Structures
103
About Arrays
104
Basic Array Concepts
104
About Coldfusion Arrays
104
Basic Array Techniques
106
Referencing Array Elements
106
Creating Arrays
106
Adding Elements to an Array
108
Deleting Elements from an Array
109
Copying Arrays
109
Populating Arrays with Data
110
Populating an Array with the Arrayset Function
110
Populating an Array with the Cfloop Tag
110
Populating an Array from a Query
112
Array Functions
113
About Structures
113
Structure Notation
114
Referencing Complex Structures
114
Creating and Using Structures
116
Creating Structures
116
Adding Data Elements to Structures
117
Updating Values in Structures
117
Getting Information about Structures and Keys
117
Copying Structures
119
Deleting Structure Elements and Structures
121
Looping through Structures
121
Structure Example
122
Structure Functions
125
CHAPTER 6: Extending Coldfusion Pages with CFML Scripting
127
About Cfscript
128
Comparing Tags and Cfscript
128
The Cfscript Language
129
Identifying Cfscript
129
Variables
129
Expressions and Operators
129
Statements
129
Statement Blocks
130
Comments
130
Reserved Words
131
Differences from Javascript
131
Cfscript Limitation
131
Cfscript Functional Equivalents to Coldfusion Tags
131
Using Cfscript Statements
132
Using Assignment Statements and Functions
132
Using Conditional Processing Statements
132
Using Looping Statements
134
Handling Exceptions
139
Cfscript Example
140
CHAPTER 7: Using Regular Expressions in Functions
143
About Regular Expressions
144
Using Coldfusion Regular Expression Functions
144
Basic Regular Expression Syntax
145
Regular Expression Syntax
145
Using Character Sets
145
Finding Repeating Characters
146
Case Sensitivity in Regular Expressions
147
Using Subexpressions
147
Using Special Characters
147
Using Escape Sequences
150
Using Character Classes
151
Using Backreferences
152
Using Backreferences in Replacement Strings
153
Omitting Subexpressions from Backreferences
154
Returning Matched Subexpressions
154
Specifying Minimal Matching
157
Regular Expression Examples
158
Regular Expressions in CFML
159
Types of Regular Expression Technologies
159
CHAPTER 8: Reusing Code in Coldfusion
163
About Reusable CFML Elements
164
Including Pages with the Cfinclude Tag
164
Using the Cfinclude Tag
165
Recommended Uses
166
Calling User-Defined Functions
166
Calling Udfs
166
For more Information
167
Using Custom CFML Tags
167
Calling Custom CFML Tags
168
Recommended Uses
169
For more Information
169
Using CFX Tags
169
Calling CFX Tags
169
Recommended Uses
170
For more Information
170
Using Coldfusion Components
170
Creating and Using Coldfusion Components
170
Recommended Uses
171
For more Information
171
Selecting Among Coldfusion Code Reuse Methods
171
CHAPTER 9: Creating and Using Custom CFML Tags
173
Creating Custom Tags
174
Creating and Calling Custom Tags
174
Securing Custom Tags
177
Accessing Existing Custom Tags
177
Passing Data to Custom Tags
177
Passing Values to and from Custom Tags
177
Using Tag Attributes Summary
178
Custom Tag Example with Attributes
179
Passing Custom Tag Attributes Using CFML Structures
180
Managing Custom Tags
181
Securing Custom Tags
181
Encoding Custom Tags
181
Executing Custom Tags
182
Accessing Tag Instance Data
182
Handling End Tags
183
Processing Body Text
185
Terminating Tag Execution
185
Nesting Custom Tags
186
Passing Data between Nested Custom Tags
187
Variable Scopes and Special Variables
187
High-Level Data Exchange
188
CHAPTER 10: Writing and Calling User-Defined Functions
191
About User-Defined Functions
192
Calling User-Defined Functions
192
Creating User-Defined Functions
193
Creating Functions Using Cfscript
193
Creating Functions Using Tags
193
Rules for Function Definitions
194
Defining Functions in Cfscript
198
Defining Functions Using the Cffunction Tag
200
Calling Functions and Using Variables
202
Passing Arguments
202
Referencing Caller Variables
203
Using Function-Only Variables
203
Using Arguments
204
A User-Defined Function Example
204
Defining the Function Using Cfscript
204
Defining the Function Using the Cffunction Tag
205
Using Udfs Effectively
206
Using Application.cfm and Function Include Files
206
Specifying the Scope of a Function
206
Using the Request Scope for Static Variables and Constants
208
Using Function Names as Function Arguments
208
Handling Query Results Using Udfs
208
Identifying and Checking for Udfs
209
Using the Evaluate Function
210
Passing Complex Data
210
Using Recursion
212
Handling Errors in Udfs
212
CHAPTER 11: Building and Using Coldfusion Components
219
About Coldfusion Components
220
Basic Component Concepts
220
Coldfusion Component Features and Use
222
Using Coldfusion Components
224
Instantiating Cfcs
225
CFC Invocation Techniques
225
Invoking CFC Methods with the Cfinvoke Tag
226
Using Components Directly in Cfscript and CFML
229
Invoking CFC Methods Using Forms and Urls
230
Accessing Cfcs from Outside Coldfusion and Basic HTML
232
Invoking Components as Web Services
232
Introspection: Getting Information about Components
233
Building Coldfusion Components
235
Initializing Instance Data
236
Defining Component Methods
236
Providing Results
239
CFC Variables
242
Structuring and Reusing Code
244
Building Secure Coldfusion Components
248
CHAPTER 12: Building Custom CFXAPI Tags
251
What Are CFX Tags
252
Before You Begin Developing CFX Tags in Java
252
Sample Java CFX Tags
252
Setting up Your Development Environment to Develop CFX Tags in Java
253
Customizing and Configuring Java
253
Writing a Java CFX Tag
253
Calling the CFX Tag from a Coldfusion Page
254
Processing Requests
255
Loading Java CFX Classes
256
Automatic Class Reloading
257
Life Cycle of Java CFX Tags
257
Zipbrowser Example
257
Approaches to Debugging Java CFX Tags
259
Outputting Debugging Information
259
Debugging in a Java IDE
259
Using the Debugging Classes
260
Developing CFX Tags in C
261
Sample C++ CFX Tags
261
Setting up Your C++ Development Environment
261
Compiling C++ CFX Tags
262
Locating Your C++ Library Files on UNIX
262
Implementing C++ CFX Tags
262
Debugging C++ CFX Tags
262
Registering CFX Tags
263
CHAPTER 13: Designing and Optimizing a Coldfusion Application
267
About Applications
268
Elements of a Coldfusion Application
268
The Application Framework
268
Application-Level Settings and Functions
269
Reusable Application Elements
269
Shared Variables
270
Application Security and User Identification
270
Mapping an Application
270
Processing the Application.cfm and Onrequestend.cfm Pages
271
Defining the Directory Structure
271
Creating the Application.cfm Page
272
Naming the Application
273
Setting the Client, Application, and Session Variables Options
273
Defining Page Processing Settings
274
Setting Application Default Variables and Constants
274
Processing Logins
274
Handling Errors
274
Example: an Application.cfm Page
275
Optimizing Coldfusion Applications
277
Caching Coldfusion Pages that Change Infrequently
277
Caching Parts of Coldfusion Pages
278
Optimizing Database Use
281
Providing Visual Feedback to the User
284
CHAPTER 14: Handling Errors
285
About Error Handling in Coldfusion
286
Understanding Errors
286
About Error Causes and Recovery
286
Coldfusion Error Types
287
About Coldfusion Exceptions
288
How Coldfusion Handles Errors
290
Error Messages and the Standard Error Format
291
Determining Error-Handling Strategies
292
Handling Missing Template Errors
292
Handling Form Field Validation Errors
292
Handling Compiler Exceptions
293
Handling Runtime Exceptions
293
Specifying Custom Error Messages with Cferror
294
Specifying a Custom Error Page
294
Creating an Error Application Page
295
Logging Errors with the Cflog Tag
297
Handling Runtime Exceptions with Coldfusion Tags
299
Exception-Handling Tags
299
Using Cftry and Cfcatch Tags
299
Using Cftry: an Example
303
Using the Cfthrow Tag
307
Using the Cfrethrow Tag
309
Example: Using Nested Tags, Cfthrow, and Cfrethrow
309
CHAPTER 15: Using Persistent Data and Locking
315
About Persistent Scope Variables
316
Coldfusion Persistent Variables and Coldfusion Structures
316
Coldfusion Persistent Variable Issues
317
Managing the Client State
318
About Client and Session Variables
318
Maintaining Client Identity
319
Configuring and Using Client Variables
321
Enabling Client Variables
321
Using Client Variables
323
Configuring and Using Session Variables
326
What Is a Session
326
Configuring and Enabling Session Variables
327
Storing Session Data in Session Variables
328
Standard Session Variables
328
Getting a List of Session Variables
329
Creating and Deleting Session Variables
329
Accessing and Changing Session Variables
330
Ending a Session
330
Configuring and Using Application Variables
330
Configuring and Enabling Application Variables
331
Storing Application Data in Application Variables
331
Using Application Variables
331
Using Server Variables
332
Locking Code with Cflock
333
Sample Locking Scenarios
334
Using the Cflock Tag with Write-Once Variables
335
Using the Cflock Tag
335
Considering Lock Granularity
338
Nesting Locks and Avoiding Deadlocks
338
Examples of Cflock
340
CHAPTER 16: Securing Applications
345
Coldfusion Security Features
346
About Resource and Sandbox Security
346
Resource Control
347
Sandbox Security
347
About User Security
348
Authenticating Users
350
Using Coldfusion Security Tags and Functions
352
Using the Cflogin Tag
353
Getting the User ID and Password
353
Logging a User in Using Flash Remoting
354
Logging Users out
354
Security Scenarios
355
A Web Server Authentication Security Scenario
355
An Application Authentication Security Scenario
356
Implementing User Security
358
Web-Server-Based Authentication User Security Example
358
Application-Based User Security Example
360
Using an LDAP Directory for Security Information
366
CHAPTER 17: Developing Globalized Applications
371
Introduction to Globalization
372
Defining Globalization
372
Importance of Globalization in Coldfusion Applications
373
How Coldfusion MX Supports Globalization
373
Character Sets, Character Encodings, and Locales
373
About Character Encodings
374
The Java Unicode Character Encoding
375
Character Encoding Conversion Issues
375
Locales
376
Setting the Locale
376
Using the Locale
376
Processing a Request in Coldfusion
377
Determining the Character Encoding of a Coldfusion Page
378
Determining the Page Encoding of Server Output
379
Tags and Functions for Globalizing
379
Tags and Functions for Controlling Character Encoding
380
Functions for Controlling and Using Locales
381
Additional Globalization Tags and Functions
382
Handling Data in Coldfusion MX
382
General Character Encoding Issues
383
Locale-Specific Content
383
Input Data from Urls and HTML Forms
383
File Data
385
Databases
385
E-Mail
386
Http
386
Ldap
386
Wddx
386
Com
386
Corba
386
Searching and Indexing
387
CHAPTER 18: Debugging and Troubleshooting Applications
389
Configuring Debugging in the Coldfusion MX Administrator
390
Debugging Settings Page
390
Debugging IP Addresses Page
392
Using Debugging Information from Browser Pages
392
General Debugging Information
393
Execution Time
394
Database Activity
396
Exceptions
397
Trace Points
398
Scope Variables
398
Using the Dockable.cfm Output Format
399
Controlling Debugging Information in CFML
400
Generating Debugging Information for an Individual Query
400
Controlling Debugging Output with the Cfsetting Tag
400
Using the Isdebugmode Function to Run Code Selectively
400
Using the Cftrace Tag to Trace Execution
401
About the Cftrace Tag
401
Using Tracing
403
Calling the Cftrace Tag
404
Using the Code Compatibility Analyzer
405
Troubleshooting Common Problems
406
CFML Syntax Errors
406
Data Source Access and Queries
407
Http/Url
407
CHAPTER 19: Introduction to Databases and SQL
411
What Is a Database
412
Using Multiple Database Tables
413
Database Permissions
414
Commits, Rollbacks, and Transactions
414
Database Design Guidelines
415
Using SQL
415
SQL Example
415
Basic SQL Syntax Elements
416
Reading Data from a Database
418
Modifying a Database
420
Writing Queries Using an Editor
422
Writing Queries Using Dreamweaver MX
422
Writing Queries Using Macromedia Homesite
424
CHAPTER 20: Accessing and Retrieving Data
427
Working with Dynamic Data
428
Retrieving Data
428
The Cfquery Tag
429
The Cfquery Tag Syntax
429
Building Queries
430
Outputting Query Data
431
Query Output Notes and Considerations
433
Getting Information about Query Results
433
Query Variable Notes and Considerations
434
Enhancing Security with Cfqueryparam
435
About Query String Parameters
435
Using Cfqueryparam
435
CHAPTER 21: Updating Your Database
437
About Updating Your Datasbase
438
Inserting Data
438
Creating an HTML Insert Form
438
Data Entry Form Notes and Considerations
440
Creating an Action Page to Insert Data
440
Updating Data
442
Creating an Update Form
443
Creating an Action Page to Update Data
445
Deleting Data
448
Deleting a Single Record
448
Deleting Multiple Records
450
CHAPTER 22: Using Query of Queries
451
About Record Sets
452
Referencing Queries as Objects
452
Creating a Record Set
452
Creating a Record Set with a Function
453
About Query of Queries
454
Benefits of Query of Queries
454
Performing a Query of Queries
455
Query of Queries User Guide
462
Using Dot Notation
462
Using Joins
462
Using Unions
463
Using Conditional Operators
465
Using Aggregate Functions
468
Using Group by and Having Expressions
469
Using ORDER by Clauses
469
Using Aliases
470
Handling Null Values
471
Escaping Reserved Keywords
471
Using Queries of Queries with Numeric Dates
473
Understanding Query of Queries Performance
473
BNF for Query of Queries
474
CHAPTER 23: Managing LDAP Directories
477
About LDAP
478
The LDAP Information Structure
479
Entry
480
Attribute
480
Distinguished Name (DN)
480
Schema
481
Using LDAP with Coldfusion
482
Querying an LDAP Directory
483
Scope
483
Search Filter
483
Getting All the Attributes of an Entry
485
Example: Querying an LDAP Directory
485
Updating an LDAP Directory
488
Adding a Directory Entry
489
Deleting a Directory Entry
493
Updating a Directory Entry
495
Adding and Deleting Attributes of a Directory Entry
496
Changing a Directory Entry's DN
497
Advanced Topics
497
Specifying an Attribute that Includes a Comma or Semicolon
497
Using Cfldap Output
498
Viewing a Directory Schema
498
Referrals
502
Managing LDAP Security
503
CHAPTER 24: Building a Search Interface
505
About Verity
506
Using Verity with Coldfusion
506
Advantages of Using Verity
507
Supported File Types
507
Support for International Languages
509
Creating a Search Tool for Coldfusion Applications
511
Creating a Collection with the Coldfusion MX Administrator
512
About Indexing a Collection
513
Indexing and Building a Search Interface with the Verity Wizard
514
Creating a Coldfusion Search Tool Programmatically
518
Using the Cfsearch Tag
523
Working with Record Sets
526
Indexing Database Record Sets
526
Indexing Cfldap Query Results
530
Indexing Cfpop Query Results
531
Using Database-Directed Indexing
532
CHAPTER 25: Using Verity Search Expressions
535
About Verity Query Types
536
Using Simple Queries
536
Stemming in Simple Queries
537
Preventing Stemming
538
Using Explicit Queries
539
Using AND, OR, and NOT
539
Using Wildcards and Special Characters
540
Composing Search Expressions
542
Case Sensitivity
542
Prefix and Infix Notation
542
Commas in Expressions
542
Precedence Rules
543
Delimiters in Expressions
543
Operators and Modifiers
543
Refining Your Searches with Zones and Fields
552
CHAPTER 26: Retrieving and Formatting Data
559
Using Forms to Specify the Data to Retrieve
560
HTML Form Tag Syntax
560
Form Controls
561
Form Notes and Considerations
563
Working with Action Pages
564
Processing Form Variables on Action Pages
564
Dynamically Generating SQL Statements
564
Creating Action Pages
565
Testing for a Variable's Existence
566
Requiring Users to Enter Values in Form Fields
566
Form Variable Notes and Considerations
567
Working with Queries and Data
567
Using HTML Tables to Display Query Results
567
Formatting Individual Data Items
569
Building Flexible Search Interfaces
569
Returning Results to the User
570
Handling no Query Results
571
Returning Results Incrementally
572
Dynamically Populating List Boxes
574
Creating Dynamic Check Boxes and Multiple-Selection List Boxes
576
Check Boxes
576
Multiple Selection Lists
578
Validating Form Field Data Types
579
CHAPTER 27: Building Dynamic Forms
583
Creating Forms with the Cfform Tag
584
Using HTML and Cfform
584
The Cfform Controls
584
Preserving Input Data with Preservedata
585
Browser Considerations
585
Building Tree Controls with Cftree
586
Grouping Output from a Query
587
The Cftree Form Variables
589
Input Validation
589
Structuring Tree Controls
590
Image Names in a Cftree
591
Embedding Urls in a Cftree
592
Specifying the Tree Item in the URL
593
Building Drop-Down List Boxes
593
Building Text Input Boxes
594
Building Slider Bar Controls
595
Creating Data Grids with Cfgrid
595
Working with a Data Grid and Entering Data
596
Creating an Editable Grid
599
Embedding Java Applets
606
Registering a Java Applet
606
Using Cfapplet to Embed an Applet
608
Handling Form Variables from an Applet
609
Input Validation with Cfform Controls
609
Validating with Regular Expressions
610
Input Validation with Javascript
613
Handling Failed Validation
614
Example: Validating an E-Mail Address
615
CHAPTER 28: Charting and Graphing Data
617
Creating a Chart
618
Chart Types
618
Creating a Basic Chart
619
Administering Charts
620
Charting Data
621
Charting a Query
621
Charting Individual Data Points
624
Combining a Query and Data Points
625
Charting Multiple Data Collections
625
Writing a Chart to a Variable
627
Controlling Chart Appearance
629
Common Chart Characteristics
629
Setting X-Axis and Y-Axis Characteristics
631
Creating a Bar Chart
631
Setting Pie Chart Characteristics
632
Creating an Area Chart
634
Setting Curve Chart Characteristics
636
Linking Charts to Urls
636
Dynamically Linking from a Pie Chart
637
Linking to Javascript from a Pie Chart
639
CHAPTER 29: Using the Flash Remoting Service
641
About Using the Flash Remoting Service with Coldfusion
642
Planning Your Flash Application
642
Using the Flash Remoting Service with Coldfusion Pages
643
Using Flash with Coldfusion Components
646
Using the Flash Remoting Service with Server-Side Actionscript
648
Using the Flash Remoting Service with Coldfusion Java Objects
649
Handling Errors with Coldfusion and Flash
650
CHAPTER 30: Using Server-Side Actionscript
651
About Server-Side Actionscript
652
Client-Side Actionscript Requirements
652
Server-Side Requirements
653
Software Requirements
653
Location of Server-Side Actionscript Files
653
Benefits
653
What to Do Next
654
Connecting to the Flash Remoting Service
654
Using Server-Side Actionscript Functions
655
Using the Function Results in Actionscript
655
Global and Request Scope Objects
656
About the Cf.query Function and Data Sources
657
Publishing Dynamic Data
657
About Coldfusion MX Data Sources
657
Using the Cf.query Function
658
About Cf.query Function Syntax
658
About the Cf.query Record Set
659
Building a Simple Application
660
Writing the Server-Side Actionscript Function
661
Creating the Flash Movie Interface
661
Submitting User Data to the Flash Remoting Service
662
Capturing Flash Remoting Service Results
662
Checking for a Flash Remoting Service Connection
663
About the Cf.http Function
663
Using the Cf.http Function
664
Referencing HTTP Post Parameters in the Cf.http Function
665
Using the Cf.http Post Method
665
Using the Cf.http Get Method
666
PART VI: Using Web Elements and External Objects
667
CHAPTER 31: Using XML and WDDX
669
About XML and Coldfusion
670
The XML Document Object
671
A Simple XML Document
671
Basic View
671
DOM Node View
672
XML Document Structures
673
Coldfusion XML Tag and Functions
676
Using an XML Object
677
Referencing the Contents of an XML Object
677
Assigning Data to an XML Object
678
Creating and Saving an XML Document Object
680
Creating a New XML Document Object Using the Cfxml Tag
680
Creating a New XML Document Object Using the Xmlnew Function
680
Creating an XML Document Object from Existing XML
681
Saving and Exporting an XML Document Object
681
Modifying a Coldfusion XML Object
681
Functions for XML Object Management
682
Treating Elements with the same Name as an Array
683
XML Document Object Management Reference
683
Adding, Deleting, and Modifying XML Elements
685
Using XML and Coldfusion Queries
690
Transforming Documents with XSLT
691
Extracting Data with Xpath
692
Example: Using XML in a Coldfusion Application
692
Moving Complex Data Across the Web with WDDX
697
Uses of WDDX
698
How WDDX Works
699
Using WDDX
702
Using the Cfwddx Tag
702
Validating WDDX Data
702
Using Javascript Objects
702
Converting CFML Data to a Javascript Object
703
Transferring Data from the Browser to the Server
703
Storing Complex Data in a String
706
CHAPTER 32: Using Web Services
707
Web Services
708
Accessing a Web Service
708
Basic Web Service Concepts
709
Working with WSDL Files
710
Creating a WSDL File
710
Viewing a WSDL File Using Dreamweaver MX
711
Reading a WSDL File
711
Consuming Web Services
713
About the Examples in this Section
713
Passing Parameters to a Web Service
713
Handling Return Values from a Web Service
714
Using Cfinvoke to Consume a Web Service
714
Using Cfscript to Consume a Web Service
716
Consuming Web Services that Are Not Generated by Coldfusion MX
717
Calling Web Services from a Flash Client
717
Catching Errors When Consuming Web Services
717
Handling Inout and out Parameters
718
Configuring Web Services in the Coldfusion MX Administrator
718
Data Conversions between Coldfusion and WSDL Data Types
719
Consuming Coldfusion Web Services
719
Publishing Web Services
721
Creating Components for Web Services
721
Specifying Data Types of Function Arguments and Return Values
721
Producing WSDL Files
722
Using Coldfusion Components to Define Data Types for Web Services
724
Securing Your Web Services
726
Best Practices for Publishing Web Services
728
Handling Complex Data Types
728
Consuming Web Services that Use Complex Data Types
728
Publishing Web Services that Use Complex Data Types
731
CHAPTER 33: Integrating J2EE and Java Elements in CFML Applications
735
About Coldfusion, Java, and J2EE
736
About Coldfusion and Client-Side Javascript and Applets
736
About Coldfusion and JSP
736
About Coldfusion and Servlets
737
About Coldfusion and Java Objects
737
About CFML Variables and Java Variables
738
Using JSP Tags and Tag Libraries
739
Using a JSP Tag in a Coldfusion Page
739
Example: Using the Random Tag Library
740
Interoperating with JSP Pages and Servlets
740
Integrating JSP and Servlets in a Coldfusion Application
740
Examples: Using JSP with CFML
742
Using Java Objects
746
Using Basic Object Techniques
746
Creating and Using a Simple Java Class
748
Java and Coldfusion Data Type Conversions
751
Handling Java Exceptions
753
Examples: Using Java with CFML
754
CHAPTER 34: Integrating COM and CORBA Objects in CFML Applications
761
About COM and CORBA
762
About Objects
762
About COM and DCOM
762
About CORBA
762
Creating and Using Objects
763
Creating Objects
763
Using Properties
763
Calling Methods
764
Calling Nested Objects
764
Getting Started with COM and DCOM
764
COM Requirements
765
Registering the Object
765
Finding the Component Progid and Methods
765
Creating and Using COM Objects
767
Connecting to COM Objects
768
Setting Properties and Invoking Methods
768
General COM Object Considerations
769
Accessing Complex COM Objects Using Java Proxies
771
Using the Application Scope to Improve COM Performance
774
Getting Started with CORBA
777
Creating and Using CORBA Objects
777
Creating CORBA Objects
777
Using CORBA Objects in Coldfusion
778
Handling Exceptions
783
CORBA Example
784
CHAPTER 35: Sending and Receiving E-Mail
789
Using Coldfusion with Mail Servers
790
Sending E-Mail Messages
790
Sending SMTP E-Mail with Cfmail
791
Sample Uses of Cfmail
792
Sending Form-Based E-Mail
792
Sending Query-Based E-Mail
792
Sending E-Mail to Multiple Recipients
793
Customizing E-Mail for Multiple Recipients
794
Using Cfmailparam
795
Attaching Files to a Message
795
Adding a Custom Header to a Message
796
Advanced Sending Options
796
Sending Mail as HTML
796
Error Logging and Undelivered Messages
797
Receiving E-Mail Messages
797
Using Cfpop
797
The Cfpop Query Variables
798
Handling POP Mail
798
CHAPTER 36: Interacting with Remote Servers
807
About Interacting with Remote Servers
808
Using Cfhttp to Interact with the Web
808
Using the Cfhttp Get Method
808
Creating a Query Object from a Text File
811
Using the Cfhttp Post Method
812
Performing File Operations with Cfftp
815
Caching Connections Across Multiple Pages
817
Connection Actions and Attributes
818
CHAPTER 37: Managing Files on the Server
819
About File Management
820
Using Cffile
820
Uploading Files
820
Moving, Renaming, Copying, and Deleting Server Files
825
Reading, Writing, and Appending to a Text File
826
Using Cfdirectory
828
Returning File Information
828
Using Cfcontent
830
About MIME Types
830
Changing the MIME Content Type with Cfcontent
830
Index
833
Advertisement
Advertisement
Related Products
MACROMEDIA COLDFUSION MX 61-CFML
MACROMEDIA COLDFUSION MX 61-GETTING STARTED BUILDING COLDFUSION MX
MACROMEDIA COLDFUSION MX 61 - INSTALLING COLDFUSION MX FOR IBM WEBSPHERE APPLICATION SERVER
MACROMEDIA COLDFUSION MX 61 - CONFIGURING AND ADMINISTERING COLDFUSION MX
MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2
MACROMEDIA 38000382 - Macromedia JRun - Mac
MACROMEDIA 38028779 - Macromedia Dreamweaver - Mac
MACROMEDIA BREEZE
MACROMEDIA BREEZE 5
MACROMEDIA BREEZE 5-MANAGER
MACROMEDIA Categories
Software
More MACROMEDIA Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL