>- see footer for list info -<
In the cfc just declare whatever attributes the CFM page needs then simply
cfinclude it

So presuming the cfc will be passed the required arguments if it will be
called as a web service, you would do something like

<cfset url.whatever = arguments.whatever>
<cfinclude template="mycfmpage.cfm">

The next question would of course be, does the cfm page generate what you
need to return from the CFC?
If it is generating content, then you can just wrap the cfinclude in a
cfsavecontent.


--
Russ Michaels
Certified ColdFusion Professional
My Blog: www.russ.michaels.me.uk
Tel: 0845 8620034
Fax: 07092 300330
Skype: russmichaels

Commerical ColdFusion & BlueDragon Hosting: www.cfmxhosting.co.uk
FREE CFML Developer hosting : www.cfdeveloper.co.uk





-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On 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/


-- 
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.549 / Virus Database: 270.8.2/1735 - Release Date: 20/10/2008
14:52



_______________________________________________

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 -<



_______________________________________________

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 -<

Reply via email to