Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0

    Using a Default Datasource

    ColdFusion 9 introduced the ability to set a default datasource for an application.

  2. Avg. Rating 5.0

    Creating Typed Objects Using Structures

    ColdFusion allows an application to create a typed object from a structure by specifying the __type__ key in the structure.

  3. Avg. Rating 4.0

    Preventing SQL Injection Attacks

    ColdFusion offers a couple very simple and easy solutions to prevent this from happening. The first is setting the Allowed SQL on the datasource and using the <cfqueryparam> tag in all of your queries!

  4. Not yet rated

    Validating an Email Address with a Regular Expression

    ColdFusion allows the use of Regular Expressions to do pattern matching against a string with the REFind and REFindNoCase functions. Using the REFindNoCase function will allow an application to determine if a string is a valid email address. The IsValid function can also be used to accomplish this ...

  5. Not yet rated

    Looping over Arrays

    There are two different ways to loop over arrays in ColdFusion. Using an index loop and accessing the elements of the array by the specified index and specifying the array itself and outputting the specific element in the array.

  6. Not yet rated

    Looping over Structures

    Outputting values from a structure might seem a little difficult at first. Unlike arrays, which are index based, structures are key based. But, as it does with just about everything else, ColdFusion provides a simple solution!

  7. Not yet rated

    Loading Data with ORM

    ColdFusion 9's ORM ( Object Relational Mapping ) features provide easy access to the powerful features of Hibernate. One of the first steps in working with ORM is loading data. ColdFusion provides several functions for working with ORM, one of which is the entityLoad() function, which will be used ...

  8. Not yet rated

    Throwing a Custom Error

    ColdFusion allows an application to throw a custom error using the <cfthrow> tag.

  9. Not yet rated

    Using a Conditional Loop

    ColdFusion offers several different ways to operate a loop. Loops for queries, indexes, arrays, collections and conditional. To solve the problem of looping until a certain condition is met, a conditional loop will be used.

  10. Not yet rated

    Creating a Global Error Handler Using the onError() Method

    The method onError() in Application.cfc will allow an application to handle errors that are not handled by individual try/catch blocks.