Well you have to make sure Attributes.fuseaction is actually defined thats
the purpose of the <CFPARAM> and the <CFDEFAULTCASE> is there to catch
unrecognized fuseactions, say some cool guy decides he wants to see what
would happened if he changed the value of fuseaction in the url,
<CFDEFAULTCASE> would say nice try and send him on his merry way!

-----Original Message-----
From: Stephen Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 4:30 PM
To: Fusebox
Subject: RE: Fusebox EBOOK sample chapter online


in the code below (taken from chapter 4 of the new fusebox ebook which is
available online at the www.secretagents.com website)

a <cfparam> for the fuseaction is given, but a <cfdefaultcase> is also
given.

Is there any reason why you would need to do both? surely one or the
other should suffice?

<CFPARAM name="attributes.fuseaction" de fault="hello"> <!--- Basic T
echnique 3 --- >

<CFSWITCH expression="#attributes.fuseaction#">

   <CFCASE value="goodbye">
        <CFINCLUDE template="dsp_goodbye.cfm">
   </CFCASE>

   <CFCASE value="hello">
        <CFINCLUDE template="dsp_hello.cfm">
   </CFCASE>

   <CFDEFAULTCASE>
        <CFINCLUDE template="dsp_hello.cfm">
   </CFDEFAULTCASE>

</CFSWITCH>

_______________________________________
Stephen Fernandez, Web Developer, NetBenefit plc
T: +44 (020) 7336 6777
F: +44 (020) 7336 0567
http://www.netbenefit.com/

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

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

Reply via email to