Try this link:

http://forums.allaire.com/DevConf/Thread.cfm?&&Message_ID=440064&_#Message44
0064

also try using the cfheader mentioned at the bottom of this thread

Hope this helps,

Brad

-----Original Message-----
From: Correa, Orlando (ITSC) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 10, 2000 12:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: nested transactions?


Would wrapping the logic in a Custom Tag work?

Is there a way to write CF on the fly (Custom Tag executing in it own scope
and Writing CFML in memory or to an external file).  The inTransaction check
would be done in the custom tag and would write out
#chr(60)#CFTRANSACTION#chr(62)# beginning tag then write out the query
followed by the #chr(60)#/CFTRANSACTION#chr(62)# ending tag.

Then have the CFML parsed in the calling page? (or by writing a qry_xyz.cfm
file on the fly and including it into the page as a Custom Tag)

Don't know if it would work, but I thought I'd put the general idea out....

Orlando Correa
IHS Web Team
Web Applications Developer, DBA
http://my.ihs.gov

"When you're going through hell, keep going" -- Winston Churchill



-----Original Message-----
From: Steve Nelson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 9:46 PM
To: [EMAIL PROTECTED]
Subject: Re: nested transactions?


it's a good thought, except the way CF works you can't put an opening tag
inside of another nested tag like that.  you could do:

<CFSET inTransaction = ListFind(GetBaseTagList(),"CFTRANSACTION")>
<CFIF NOT inTransaction>
    <CFTRANSACTION>
         <cfquery name=somequery>
        </cfquery>
   </cftransaction>
<cfelse>
       <cfquery name=somequery>
        </cfquery>
</cfif>

It would be nice to do what you're talking about, i've wanted to do that on
numerous occasions.

Steve Nelson

Todd Hartle wrote:

> Since CF does not allow nested transaction I am trying to detect if I'm in
a
> transaction or not via the following:
>
> <CFSET inTransaction = ListFind(GetBaseTagList(),"CFTRANSACTION")>
> <CFIF NOT inTransaction>
>     <CFTRANSACTION>
> </cfif>
>
> some db stuff
>
> <CFIF NOT inTransaction>
>     </CFTRANSACTION>
> </cfif>
>
> However, I get the following error: "An extraneous end tag
</CFTRANSACTION>
> has been encountered at document position (50:5) to (50:20). End tags
cannot
> be present in CFML templates without a matching start tag."
>
> Any thoughts on doing something like this?
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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.
----------------------------------------------------------------------------
--
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