The information you will learn here can be applied to more than page defaults. This is likely the most common place you should use it. We are going to make one minor change in the code that we were using in order to make a new page. We will use the
<cfparam> tag to set the default values as shown in the following code:
<!--- Example: 1_12.cfm ---> <!--- Processing ---> <cfparam name="url.name" default="( unknown user )"> <!--- Content ---> <cftry> <cfoutput> My name is #url.name#.<br /> </cfoutput> <cfcatch> <cfdump var="#cfcatch#"> </cfcatch> </cftry>
Here we see that the default value is displayed in the browser:
Now, we have ...