This is a follow up from another post about what happens when someone removes 
the ?wsdl from a web service CFC. I'd like to have my first request be either 
an admin setting or something else to redirect or choose where to go when a 
.cfc is loaded directly in an url without any passed variables.

The second request deals with CFPARAM with the type attribute set. If this 
fails, an error is thrown. In order to deal with the error, the CFPARAM tag has 
to be within a try/catch. If we know an error may be thrown from this tag, why 
not give the tag the ability to deal with the error. 
My suggestion is to keep the tag as is but add the ability to put a closing 
CFPARAM tag. What will be placed between the start and end CFPARAM tags is the 
code that will be run if there is an error.
<CFPARAM name="id" type="numeric">
error processing code here to deal with the the id not existing or not being 
numeric
</CFPARAM>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232251
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to