Adobe COLDFUSION 9 Manual page 750

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Requesting and Presenting Information
Validation technique
IsValid function
cfparam tag
tag
cfargument
Note: For more information on ColdFusion error handling, see
Selecting a validation technique
The following considerations affect the validation technique that you select:
• If you are validating form data, the techniques you use can vary depending on whether you are using HTML, Flash,
or XML forms; for example, different form types have different validation limitations.
• Different validation techniques are appropriate for different form controls and data types.
• Available techniques vary depending on when and where you want the data validated; on the client or the server,
when the user enters data or submits a form, or when ColdFusion processes a variable or function argument.
• Each technique has specific features and considerations, such as the form of user feedback, feature limitations, and
so on.
• Security issues or concerns that apply to your environment or application can affect the technique you select.
The table in the preceding section described some of the considerations (see
following table describes additional considerations for selecting a validation technique. For additional considerations
that are specific to form fields, see
Applies to
Where and when
performed
ColdFusion variables
On the server, when
the function executes
ColdFusion variables
On the server, when
the tag executes
UDF and CFC function
On the server, when a
arguments
function is called or
invoked
"Validation type
considerations" on page 749.
Last updated 8/5/2010
Description
ColdFusion tests the variable to determine
whether it follows a specified validation rule and
the function returns true or false.
For more information on using the
function for validation, see
the IsValid function and the cfparam
page 762.
ColdFusion checks the specified variable. If the
value does not meet the validation criteria,
ColdFusion generates an expression exception.
For more information on using the
for validation, see,
"Validating data with the IsValid
function and the cfparam
ColdFusion checks the argument value when it is
passed to the function. If the value does not meet
the validation criteria, ColdFusion generates an
application exception.
For more information on using the
tag, see
"Writing and Calling User-Defined
Functions" on page 153.
"Handling
Errors" on page 275.
"Validation
techniques" on page 743). The
745
IsValid
"Validating data with
tag" on
cfparam
tag
tag" on page 762.
cfargument

Advertisement

Table of Contents
loading

Table of Contents