Trainings

Wednesday, June 10, 2009

Coldfusion Daily Dose

cfparam
----------
1. To test whether a required variable exists, use this tag with only the name attribute. If it does not exist, ColdFusion MX stops processing the page and returns an error.
e.g. <cfparam name="Form.fname" />

2. To test whether a required variable exists, and that it is of the specified type, use this tag with the name and type attributes. If the variable does not exist or its value is not of the specified type, ColdFusion returns an error.
e.g. <cfparam name="form.age" type="numeric" />