Yes, that means that FileThatNeedsApplicationInclude.cfm is considered a
custom tag. CF stops what it's doing on the current program, hops out and
does the FileThatNeedsApplicationInclude.cfm, then returns and continues
with the program that called the tag.

I must say that if that's not clear, it might be time to visit even a basic
book. I'm not saying that to offend, Glenn, I mean only that there may be
all kinds of things that you're missing out on if you've not come to learn
about custom tags (meaning other sorts of things like that which are not
"obvious" things like CFQUERY and CFOUTPUT). It's often said that most
people don't use but a fraction of CF's features, and that's a shame. There
are a number of good books.

I know people will often complain that they haven't got the time to read,
but one good resource that's small and to the point is Ben Forta's
"Certified ColdFusion Developer Study Guide". See
http://www.amazon.com/exec/obidos/ASIN/0789725657/103-7553395-9875801

And believe it or not, another resource that's right under everyone's nose
but many miss it is the CF Docs that come with CF. There are printed and
online versions (that are identical to the print version). There's even the
equivalent of a users guide (not the tag reference, since obviously a custom
tag isn't one of the predefined tags or functions discussed there). It's
called "Developing Web Applicaitons with ColdFusion" prior to R5 and
"Developing ColdFusion Applications" as of CF5. Definitely worth checking
out. Read it online at livedocs.macromedia.com, or on your server, if the
docs are installed there,  at http://<yourserver>/CFdocs/dochome.htm. The
PDF of the docs is also available at
http://www.macromedia.com/support/coldfusion/documentation.html

Also, on the matter of just understanding Custom Tags, I have a couple
articles I did in the CFDJ on the subject that are of value to both
newcomers and more experienced folks (explaining some aspects of using them
that aren't obvious). See them at www.systemanage.com/cff/articles.cfm.
Others have written on them, too. Just do a search at the CFDJ on "custom
tag".

/charlie

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Glenn Shukster
Sent: Friday, March 01, 2002 4:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFTALKTor] Application.cfm question


Hi Charles
I think it was a called custom tag.  However, I don't really know what a
called custom tag is.
The code is
<cf_FileThatNeedsApplicationInclude val="abc">
Does that explain it then?

charles arehart wrote:
>
> Using the request scope would certainly be the solution if the problem is
> that the pages that are failing are being called as custom tags. I'd not
> recommend using the application scope just for this. Indeed, I wrote an
> entire article on the reasoning, called "Why It's Wrong to Use
> Application.dsn in Your Templates" which as in the July CFDJ and is
> available on my site at www.systemanage.com/cff/articles.cfm
>
> Glen, you haven't indicated if the failing code is in a called custom tag.
> That would definitely explain it. If it's something else, then it's a more
> interesting challenge to resolve.
>
> /charlie
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Marc Campeau
> Sent: Friday, March 01, 2002 1:14 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFTALKTor] Application.cfm question
>
> Could it be that you sometimes include templates in you Application.cfm
and
> at other times not?
>
> Could you have another Application.cfm in a directory below this one and
> that it doesn't declare the variable?
>
> > > > <cfset ODBC_DSN = "MyODBCName">
>
> As a suggestion you might consider using an APPLICATION scope variable for
> ODBC_DSN or even a REQUEST scoped variable.
>
> That would be "cleaner" (that's probably debatable) than setting it to the
> local scope.
>
> >From the Doc.:
>
> Application variables are designed to store application-level data. They
are
> a convenient place to store information that all pages of your application
> might need no matter who (what client) is running that application. Using
> application variables, an application could initialize itself, say, when
the
> first user hit any page of that application. This information could then
> remain available indefinitely to all subsequent hits of any pages of that
> application, by all users, thereby avoiding the overhead of repeated
> initialization.
>
> Request variables are global to all templates, includes, custom tags used
in
> any given request. They are not persistent like Application variables.
>
> Marc
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: "Marc Campeau" <[EMAIL PROTECTED]>
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED])
http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: "charles arehart"
<[EMAIL PROTECTED]>
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED])
http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)

--
Cheers
Glenn Shukster (Logic Fundamentals Inc.)  Thornhill, Ont. Canada
Phone:(905)771-6458   Fax:(905)771-6819   www.logicfundamentals.com
President of TDUG  www.tdug.com
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: Glenn Shukster <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "charles arehart" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to