My solution to the original problem is to just use cfsets above the include.

<cfset WebPage_ID = 20>
<cfset DID = 9>
<CFINCLUDE TEMPLATE="/acb/webpage.cfm">

jon
----- Original Message -----
From: "Homer Simpson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 28, 2000 12:35 PM
Subject: RE: CFINCLUDE problems


> As far as I know, when you do a <CFINCLUDE> it includes the file in the
> current file without executing the file.  Thus a <CFINCLUDE> cannot
contain
> query strings which explains why the <CFINCLUDE> you are using does not
> work.
>
> You will need to change the <CFINCLUDE> to be <CFINCLUDE
> TEMPLATE="/acb/webpage.cfm">
>
> HTH
>
> -----Original Message-----
> From: Gina Shillitani [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 28, 2000 17:02
> To: CF-Talk
> Subject: RE: CFINCLUDE problems
>
>
> I did create the mapping though... it is in CF Server:
>
> Logical Path Directory Path
> /  C:\INETPUB\WWWROOT\
> /acb/  C:\Inetpub\wwwroot\acb\acb\
>
> -----Original Message-----
> From: Hayes, David [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 28, 2000 11:44 AM
> To: CF-Talk
> Subject: RE: CFINCLUDE problems
>
>
> The answer is in that message; it thinks you're referencing and absolute
> path.
>
> Use the relative path syntax if you don't want to create a mapping.
>
> -----Original Message-----
> From: Gina Shillitani [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 28, 2000 10:21 AM
> To: CF-Talk
> Subject: CFINCLUDE problems
>
>
> Can you not include files in the following manner? Notes: CF Server has
the
> mapping, so does IIS, and if you view the page I'm trying to include
> directly or link to it, it works fine.
>
> I am attempting to do this:
>
> <CFINCLUDE TEMPLATE="/acb/webpage.cfm?WebPage_ID=20&DID=9">
>
> but when I do this, I get this message:
>
> Template file not found.
> HTTP/1.0 404 Object Not Found
> Note: If you wish to use an absolute template path (e.g.
> TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a
mapping
> for the path using the ColdFusion Administrator.
> Using relative paths (e.g. TEMPLATE="index.cfm" or
TEMPLATE="../index.cfm")
> does not require the creation of any special mappings. It is therefore
> recommended that you use relative paths with CFINCLUDE whenever possible.
>
> BUT, if I do this:
>
> <cfset y="/acb/webpage.cfm?webpage_id=20&did=9">
> <CFOUTPUT><A HREF="#y#">y</A></CFOUTPUT>
>
> the link works just fine. Problem is, I don't want a link, I want to
include
> it.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to