I actually use both, but in a different fashion. I
believe the idea was introduced by Alaskan Alan
(thanks Alan!).
<CFPARAM name="attributes.fuseaction" default="list">
<cfcase value="list">
<cfset rfa.categorylist="categorylist">
<cfset rfa.submit="sendfaq">
<cfhtmlhead text="<title>iaffectTV -
Help/FAQ's</title>">
<cfinclude
template="/iaffecttv/affecter/commonfiles/qry_faqgetall.cfm">
<cfinclude
template="/iaffecttv/affecter/commonfiles/qry_faqgetallcategories.cfm">
<cfinclude template="dis_faqlist.cfm">
</cfcase>
<cfcase value="categorylist">
<cfset rfa.categorylist="categorylist">
<cfhtmlhead text="<title>iaffectTV -
Help/FAQ's</title>">
<cfinclude
template="/iaffecttv/affecter/commonfiles/qry_faqgetcategory.cfm">
<cfinclude
template="/iaffecttv/affecter/commonfiles/qry_faqgetallcategories.cfm">
<cfinclude template="dis_faqcategorylist.cfm">
</cfcase>
<cfdefaultcase>
<cflocation url="/error_url.htm" addtoken="no">
</cfdefaultcase>
This way if someone monkies with the URL, you can
catch them and say 'uh uh their guy!'...
Nathan Shaw
iaffectTV
--- Stephen Fernandez
<[EMAIL PROTECTED]> wrote:
> 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.
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.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.