Hi all,

Suppose we have a 'home application' at

        www.some_domain.com/lists

and have some 'circuit applications':

        - creation
        - subscription 
        - ...

We can use the two ways below for requesting a action from a 'circuit
application', eg, 

                 circuit application: 'creation'
                 fuseaction         : 'alias'


(I) "directly" calling 'circuit fusebox':

        www.some_domain.com/lists/creation/index.cfm?fuseaction=alias.

(II) "indirectly" calling 'circuit fusebox':

        For this, we should use a composite fuseaction like
'creation.alias'.

        And a 'application fusebox' like below:

        ...

        <cfswitch expression="#ListFirst(ATTRIBUTES.fuseaction)#">
        ...
        <cfcase value="creation">
           <cfset ATTRIBUTES.fuseaction = ListLast(ATTRIBUTES.fuseaction,".")>
           <cfinclude template="/wwwroot/lists/creation/index.cfm">     
        </cfcase>
        ...
        </cfswitch>

        ...

        In this option it becomes 'transparent' for the user the
        application architecture, by the fact he only sees a URL indicating the
        'home application' (www.some_domain.com/lists/index.cfm).

Is (I) correct ? Is there any standard ?

Regards,
Jo�o Maca�ba.

--
Programmer's Drinking Song

99 little bugs in the code,
99 bugs in the code,
Fix one bug, compile it again,
100 little bugs in the code.
(go to start if bugs>0)
--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to