User Guide
vi Developing Web Applications with ColdFusion
Access to generated content...................................................................................................84
Installing Custom Tags...................................................................................................................85
Local tags..................................................................................................................................85
Shared tags...............................................................................................................................85
Managing Custom Tags..................................................................................................................85
Resolving file name conflicts..................................................................................................85
Securing Custom Tags ............................................................................................................86
Encoding Custom Tags ...........................................................................................................86
Chapter 8: Debugging and Error Handling ..................................................89
Debug Settings in the ColdFusion Administrator........................................................................90
Generating debug information for an individual page ........................................................90
Generating debug information for an individual query.......................................................90
Error messages.........................................................................................................................90
CFML Code Validation ...................................................................................................................91
Troubleshooting Common Problems ...........................................................................................91
ODBC data source configuration...........................................................................................91
HTTP/URL ...............................................................................................................................92
CFML syntax errors .................................................................................................................92
Generating Custom Error Messages (CFERROR) ........................................................................93
Creating an error application page........................................................................................93
Overview of Exception Handling in ColdFusion..........................................................................94
Types of recoverable exceptions supported .........................................................................95
Exception Information in CFCATCH ............................................................................................97
Tag context information .........................................................................................................98
Database exceptions ...............................................................................................................99
Expression exceptions ............................................................................................................99
Locking exceptions..................................................................................................................99
MissingInclude exceptions...................................................................................................100
Exception handling strategies......................................................................................................100
Exception handling example .......................................................................................................100
Custom Exception Types..............................................................................................................102
Chapter 9: Handling Complex Data
with Structures..............................................................................................103
About Arrays..................................................................................................................................104
Creating an Array ..........................................................................................................................105
Multidimensional Arrays......................................................................................................106
Basic Array Techniques ................................................................................................................106
Adding elements to an array.................................................................................................107
Referencing Elements in Dynamic Arrays ..................................................................................107
Additional referencing methods ..........................................................................................108
Populating Arrays with Data ........................................................................................................108
Populating an array with ArraySet .......................................................................................108
Populating an array with CFLOOP.......................................................................................108
Using Nested Loops for 2D and 3D Arrays..........................................................................109
Populating an Array from a Query...............................................................................................110