Title: Knowing the CFC path from within the CFC
That did it guys, thanks again!
-----Original Message-----
From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:16 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Knowing the CFC path from within the CFC

Within the CFC you can use:

 

#getMetaData(this).name#

 

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Suyer, Ed [PRD Non-J&J]
Sent: Wednesday, June 18, 2003 1:46 PM
To: '[EMAIL PROTECTED]'
Subject: [CFCDev] Knowing the CFC path from within the CFC

 

 

Is there a variable I can access from within the cfc that contains the dot notation path of the cfc?

in other words, if I call- >

<cfobject name="foo" component="com.jnj.foo">
<cfinvoke component="#foo#" method="getPath" returnvariable="attributes.cfcpath">

what goes in here ->

<cfcomponent>
        <cffunction access="public" name="getPath">

                <cfreturn ??> <!-- i want to return "com.jnj".  "com.jnj.foo" works too. --->
        </cffunction>
</cfcomponent>

 

Any thoughts?

Reply via email to