Where is the dir "mytestarea" in relation to the template which is
executing this code and is there a cfmapping? Also, why do you have that
cfif around the switch? Also, is that "?" at the end of the url params
after newPage.cfm supposed to be there?

--Ferg

  _____  

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>

...
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to