If I call a component with a fully qualified name as follows, how
would ColdFusion locate the component?
CreateObject(component, com.companyname.myApp.myComponent);
I would presume that ColdFusion would search for the component in the
following order:
1. Locate a mapping for /com
1a. If found
Thanks to everyone. Here is one more question.
If I call a component without fully qualifing it, what would be the
expected outcome. For example, if I call a component like this:
CreateObject(component, myComponent);
And NOT like this:
CreateObject(component, myCFC.myComponent);
How will
When people talk about the webroot, what are they referring to?
Are they referring to the WebServer's web root, like in the case of
IIS it might be
C:\iis\wwwroot\
Or would this be another location unique to the ColdFusion Application Servers?
Our ColdFusion Application Servers are configured
When people talk about the webroot, what are they referring to?
Are they referring to the WebServer's web root, like in the case of
IIS it might be C:\iis\wwwroot\
Yes, that's what they're talking about. CF doesn't know anything about the
web root, generally, although there may be a root
If I call a component without fully qualifing it, what would be the
expected outcome. For example, if I call a component like this:
CreateObject(component, myComponent);
And NOT like this:
CreateObject(component, myCFC.myComponent);
How will the component be located? Will
U have to specify a mapping in your paths.
E.g
cfmodule template=\mapping\filename.cfm
Custom tag paths are search automatically.
--
Snake
-Original Message-
From: Troy Simpson [mailto:[EMAIL PROTECTED]
Sent: 21 November 2005 20:35
To: CF-Talk
Subject: Why do I need a Custom Tag Path
I don't think you have to define a mapping for them to workif none
defined
then the default of install drive\CFMX install dir\wwwroot is the default
(which was in 6 for suremay have changed in 7).
That said...what you posted has nothing to do with custom tag path settings in
CF Admin
You don't. It's just another way to reference them. I'm not sure
what the benefit would be over a mapping, but you can safely ignore
that feature if you can use mappings.
In reality, I can't think of a good reason to ever use custom tag
paths. I don't think a server I control has anything
Message -
From: Bryan Stevenson [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, November 21, 2005 12:42 PM
Subject: Re: Why do I need a Custom Tag Path for Components?
I don't think you have to define a mapping for them to workif none
defined
then the default
Assuming that my coldfusion components and include files are outside
the web root and the mapping root (/), how would mappings and custom
tag paths be searched for?
I know that cfinclude used the mappings to find an included file.
What order are the mapping referenced? Are mappings referenced
Are mappings searched automatically when using CreateObject with a
ColdFusion component?
Thanks,
Troy
On 11/21/05, Snake [EMAIL PROTECTED] wrote:
U have to specify a mapping in your paths.
E.g
cfmodule template=\mapping\filename.cfm
Custom tag paths are search automatically.
--
Snake
Assuming that my coldfusion components and include files are outside
the web root and the mapping root (/), how would mappings and custom
tag paths be searched for?
mappings are not searched forthey mappings ;-)
AFAIR tags are searched for in the calling templates dir first and then works
-Original Message-
From: Troy Simpson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 3:58 PM
To: CF-Talk
Subject: Re: Why do I need a Custom Tag Path for Components?
Assuming that my coldfusion components and include files are outside
the web root and the mapping root
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 4:13 PM
To: CF-Talk
Subject: Re: Why do I need a Custom Tag Path for Components?
Assuming that my coldfusion components and include files are outside
the web root and the mapping
On 11/21/05, Troy Simpson [EMAIL PROTECTED] wrote:
Are mappings searched automatically when using CreateObject with a
ColdFusion component?
Yes createObject(component,foo.bar) will look for a /foo mapping
(and if it doesn't find one, it will look for /foo off the webroot or
off any of the
15 matches
Mail list logo