This is a multi-part message in MIME format.
--------------18C7AC6829E7ABD215ED64FB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Avi -

Personally, what I always do is to have the
cfparam name="attributes.fuseaction" default="do_whatever"
line in my app_local, and the
cfswitch expression="#listfirst(attributes.fuseaction)#" line in my index.

So the users always get to a default, but I never really know whether they specified a 
fuseaction or not.

But...

One thing you could do (and I haven't personally done it, seeing as how I just thought 
of it), would be to cfmodule back to the index (from within your cfdefaultcase case) 
with the
fuseaction attribute set to whatever you want the *real* default case to be. Just 
before the cfmodule, you could do whatever processing you want to do to let either you 
or the app
know that no specific fuseaction was called by the user (whether that's logging it or 
whatever).

Or maybe that wouldn't work because I'm all out of coffee today, and most of my brain 
is still asleep.

Worth a try.


Steve Ray
Matrix Group



Avi Flax wrote:

> I know we all use a CFPARAM for our Attributes.FuseAction at the top of our
> index.cfm - my question is, do you all leave the default value blank, or do
> you set it to something? I am vacillating between the two.
>
> One the one hand, if I leave it blank, then in my CFSWITCH, if it gets to
> my CFDEFAULTCASE, then I know that an invalid or missing FuseAction has
> been called. That can be useful. But on the other hand, once I know that, I
> probably want to use an actual FuseAction as a default - and to do that, I
> have to either use a CFLOCATION, which is an unnecessary communication
> client-server, or I have to duplicate the code from my default FuseAction.
>
> On the other hand, if I fill in the default FuseAction, then I won't know
> if the FuseBox was called with no FuseAction.
>
> Any thoughts?
>
> Thanks!
>
> --
> Avi Flax
>
> ------------------------------------------------------------------------------
> 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.

--------------18C7AC6829E7ABD215ED64FB
Content-Type: text/x-vcard; charset=us-ascii;
 name="sray.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Steve Ray
Content-Disposition: attachment;
 filename="sray.vcf"

begin:vcard 
n:;
tel;fax:703.838.9799
tel;work:703.838.9777
x-mozilla-html:TRUE
url:www.matrixgroup.net
org:Matrix Group International
version:2.1
email;internet:[EMAIL PROTECTED]
title:Developer/Hipster
adr;quoted-printable:;;801 N. Fairfax Street=0D=0ASte. 205;Alexandria;Virginia;22314;
fn:Steve Ray
end:vcard

--------------18C7AC6829E7ABD215ED64FB--

------------------------------------------------------------------------------
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