Are you asking about pushing it into the request scope or putting it into a variable in general? I don' think there is anything wrong with either. Certainly if you want your custom tags to use the CFC it makes since to put it in the request scope.
======================================================================= Raymond Camden, ColdFusion Jedi Master for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 10:19 AM > To: CF-Talk > Subject: RE: Opinion: CFC / Request scope question. > > > I actually use #2 a lot (cept, I wrap script around all that)... > I find it easier to work with. However, I'd still like to > know peoples > thoughts on pushing a component into the request scope. > > Just to clarify: > <cfscript> > x = createObject("component","test"); > request.x = x; > </cfscript> > > Now .. 'request.x' is available to even other cfcs without > having to make > an additional invoke/createObject call. > > ~Todd > > On Fri, 7 Jun 2002, Raymond Camden wrote: > > > I think the question can be made a bit more broad - what is better: > > > > 1) <cfinvoke component="test" method="x"> > > > > or > > > > 2) <cfset x = createObject("component","test")> > > <cfset y = test.foo()> > > > > In general my feelings are that if you are going to do anything more > > than call one method, you should use #2. It should be > quicker (since you > > have the object already), but more than that, it's handier > to have the > > object around I would think. > > > > Of course, since CFCs have been out for just a little while > now, what I > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists