>- see footer for list info -<
Or try a custom approach:
<!--- Called as a custom tag --->
<cfif IsDefined("THISTAG")>
<cfset URL.someURLVar = ATTRIBUTES.someURLVar>
<cfset FORM.someFormVarINeed = ATTRIBUTES.someFormVarINeed>
</cfif>
Adrian
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Terry Riley
Sent: 21 October 2008 14:02
To: [email protected]
Subject: RE: [CF-Dev] Executing basic .cfm pages from within a CFC
>- see footer for list info -<
Ah, I may have to try that as an option. Would never have occurred to me!
Will let you know.
Cheers
Terry
----- Original Message -----
> *From:* "Adrian Lynch" <[EMAIL PROTECTED]>
> *To:* "Coldfusion Development" <[email protected]>
> *Date:* Tue, 21 Oct 2008 13:44:30 +0100
>
> >- see footer for list info -<
> Good point, but you'd still need the remote CFC if to give them
> access.
>
> CTs are good for parameterising output pages. You might also get away
> with
> this in the top of the page to not have to rescope anything:
>
> <!--- Called as a custom tag --->
> <cfif IsDefined("THISTAG")>
> <cfloop collection="#ATTRIBUTES#" item="tagAttribute">
> <cfset VARIABLES[tagAttribute] = ATTRIBUTES[tagAttribute]>
> </cfloop>
> </cfif>
>
> Adrian
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Marcos Placoná
> Sent: 21 October 2008 13:39
> To: Coldfusion Development
> Subject: Re: [CF-Dev] Executing basic .cfm pages from within a CFC
>
>
> >- see footer for list info -<
> Or even, you might be able to call this page as a custom tag, and
> send the
> arguments needed. Remote CFC would be a more elegant approach, but if
> time
> is an issue, custom tags or cfmodule would be your friend.
>
> Let me know what you think.
>
> Cheers
>
> 2008/10/21 Adrian Lynch <[EMAIL PROTECTED]>
>
> > >- see footer for list info -<
> > You might be best doing just that in the long term.
> >
> > But, you could write the remote CFC to call the page that contains
> > the
> > logic
> > you need.
> >
> > Adrian
> > Building a database of ColdFusion errors at http://cferror.org/
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Terry Riley
> > Sent: 21 October 2008 12:22
> > To: [email protected]
> > Subject: [CF-Dev] Executing basic .cfm pages from within a CFC
> >
> >
> > >- see footer for list info -<
> > OK, total ignorance time again...
> >
> > Client has standard (but relatively complex) CF application running
> > on
> > 6.1, which uses NO cfcs and very little in the way of OO stuff at
> > all -
> > it is all procedural top-to-bottom stuff.
> >
> > An external organisation has been granted access to the site and
> > wants
> > to utilise some of the functionality built into at least one of the
> > current .cfm pages (where a set of data update functions will be
> > carried
> > out) through a webservice, expecting a returned success/fail.
> >
> > (The updated data will be later available also via a webservice -
> > but
> > that is a relatively simple query and query result return - I've
> > already
> > done this).
> >
> > My problem is, I see no way of executing a .cfm page (it is an
> > action
> > page that is called by many processes, lots of cfswitches) with or
> > without parameters, without having to rewrite the page as a cfc.
> >
> > Is that a correct assumption, or is my brain simply failing me
> > today?
> >
> > Cheers
> > Terry
> > http://www.confexdb.co.uk/
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<