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]

Reply via email to