Do you by any chance have <cfsetting enablecfoutputonly="yes"> in your application.cfm? or above this code anywhere? That could be causing your problem here.
-----Original Message----- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 11:53 AM To: CF-Talk Subject: Re: Using CFSWITCH and CFCASE to evaluate URL parameters Hmm.. I copied your code and ran it in a test page and it ran just fine -- page=1 or page=2, it works just fine ... Is that sample information below or the actual code and links? Paul Giesenhagen QuillDesign > OK, I tried your suggestion, and for some reason, it's not working. I don't know if I'm doing something wrong or what, but here is my code: > > <cfswitch expression="#URL.page#"> > <cfcase value="1"> > Page ONE > </cfcase> > <cfcase value="2"> > Page TWO > </cfcase> > </cfswitch> > > Now, IF I type in the address of http://localhost/myapp/mypage.cfm?page=1 THEN in theory, the words "Page ONE" should appear, correct? And, in contrast, if I change that to http://localhost/myapp/mypage.cfm?page=2 THEN, the words "Page TWO" should appear, right? > > So...that's what I'm expecting here, but it doesn't seem to be working, because I don't get any errors, but nothing is appearing on the loaded page. What am I missing here? > > Bob > <)))>< > > > -----Original Message----- > From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 11:24 AM > To: CF-Talk > Subject: Re: Using CFSWITCH and CFCASE to evaluate URL parameters > > > <cfparam name="url.parameter" default=""> > <cfswitch expression="#url.parameter#"> > <cfcase value="parameter1"> > </cfcase> > <cfcase value="parameter2"> > </cfcase> > <cfdefaultcase> > </cfdefaultcase> > </cfswitch> > > Paul Giesenhagen > QuillDesign > > > > > > Does anyone know how I could use a CFSWITCH and CFCASE tags and > > statements > to check for and evaluate the presence of and value of a URL parameter? I'm having trouble figuring out what to use for the expression parameter of the cfswitch tag, to tell it to look at the URL, and for a specific parameter. > > > > Also, an a different note, is there any way to force the update of the > address line, or even just the URL using the CFLOCATION tag? I can get the cflocation tag to work, so that I can update the location *correctly*. Meaning, I can use cflocation to change the URL, and then evaluate what the URL is, and prove that by using cfoutput, but it seems like there are times when the actual URL that appears in the address line doesn't always reflect the updated URL that's being evaluated. I hope that makes sense. Sorry if it's confusing. > > > > Any ideas or help would be greatly appreciated. Thanks in advance. > > > > ::YEX:: > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

