Hi,
Because I want to speed up access to calls to a component I put it in the 
application scope. First I have to be sure it's there and if not, put it there. 
So in application.cfm I do this:

<cfparam name="APPLICATION.objects.db" 
default="#CreateObject('component','components.db').init(dns='myDNS')#">

But then I get an erromessage:

The required parameter APPLICATION.objects.db was not provided.
This page uses the cfparam tag to declare the parameter APPLICATION.objects.db 
as required for this template. The parameter is not available. Ensure that you 
have passed or initialized the parameter correctly. To set a default value for 
the parameter, use the default attribute of the cfparam tag.
pointing to thei piece of code.
Anybody knows whats wrong here??? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294148
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to