Custom tags have 3 execution modes: Start, Inactive and End. Inactive does not process code execution implicitly, which makes sense why it is called "inactive."
Start and end will both execute whatever is passed to it. Start is typically used to prepare code execution. Consider the "start" mode your initilization. The end execution is typically where you will process most of what your tag is supposed to do. <cfswitch expression=#thisTag.ExecutionMode#> <cfcase value="start"> </cfcase> <cfcase value="end"> </cfcase> </cfswitch> Here is a simple example of where to put code for each execution mode. Teddy On 11/15/06, Senthil D <[EMAIL PROTECTED]> wrote: > > Here is my problem exactly: > > <cfcomponent> > <cfinclude ...> > <cfcomponent> > > For some reason the cfinclude is called twice (Note: there is no duplicate > includes/ close tag error> > > I got suggestions to put ifTag.executionmode check for cfinclude. > > Is this is the right way to do it. > > Thanks > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260497 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

