You don't necessarily have to cflocate... You could just include the
template. It will have access to the variables you're sending in and you
can even set them into the url scope if you need
--Ferg
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 3:00 PM
To: CF-Talk
Subject: RE: cfswitch, case, cfinclude and the path problem
<cfinclude
template="/mytestarea/cfi/newPage.cfm?variableName2=variable2&
variableName3=variable3?>
you'll have to use <cflocation> or js location.href
cant add url variables in the path with cfinclude..
-----Original Message-----
From: md insua [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 2:52 PM
To: CF-Talk
Subject: cfswitch, case, cfinclude and the path problem
I have run into a bit of a path error in trying to use the cfswitch /
cfcase
tags in place of the cfif, cfelseif and cfelse with a cfinclude. Here?s
an
example of where I?m at:
<cfif IsDefined ("variableName1")>
<cfswitch _expression_="#url.variableName#">
<cfcase value="">
<cfinclude template="/mytestarea/cfi/default.cfm">
</cfcase>
<cfcase value="variable1">
<cfinclude
template="/mytestarea/cfi/newPage.cfm?variableName2=variable2&
variableName3=variable3?>
</cfcase>
<!--- there are a few more cfcase statements below these two --->
</cfswitch>
</cfif>
and all I get is ?
Error Occurred While Processing Request
Error Diagnostic Information
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.
The error occurred while processing an element with a general identifier
of
(CFINCLUDE), occupying document position (55:12) to (55:81).
Date/Time: 07/22/04 00:00:00
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Remote Address: my.work.station.001
HTTP Referrer:
http://www.thenewguy.com/mytestarea/home.cfm?variableName1=variable1
Query String: variableName1=variable1
The position noted within the error specifies the cfinclude that is
making
the call to the newpPage.cfm with the variables appended to the url.
Any assistance, suggestions (other than the obvious ? haha) or thoughts
is
greatly appreciated.
the new guy
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

