Whoops - sorry it was a crap test, it should have been more like:

<CFPARAM DEFAULT="" NAME="request">
<CFIF IsStruct(request)>
    request scope is available
<CFELSE>
    request scope ain't available
</CFIF>

But if it fell over then looks like the request scope isn't available.
So in bodycontent you're going to have to scope "thistag.generatedcontent"
in the caller scope, probably keeping the request prefix so that you don't
need to mess with you app_layout when you go to 4.5:

from:
        <cfset "request.#attributes.name#"=thistag.generatedcontent>
to:
        <cfset "caller.request.#attributes.name#"=thistag.generatedcontent>

This should do the trick...

Bert


> -----Original Message-----
> From: Chris Bogzevitz [mailto:[EMAIL PROTECTED]]
> Sent: 13 November 2000 16:40
> To: Fusebox
> Subject: RE: Cf_BodyCOntent
> 
> 
> I had to add quotes around "request" to get this to work, so 
> I'm not sure
> whether I've altered anything here:
> 
> <CFSET request.foo="bar">
> <CFIF IsStruct("request")>
>     request scope is available
> <CFELSE>
>     request scope ain't available
> </CFIF>
> <cfoutput><br>
> #request.foo#</cfoutput>
> 
> When I ran this again, I received the following output:
> request scope ain't available
> bar
> 
> DOes this mean that I can't use bodycontent with 4.0.1 on NT?
> 
> Thanks for your help so far!
> 
> chris
> -----Original Message-----
> From: Bert Dawson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 13, 2000 10:05 AM
> To: Fusebox
> Subject: RE: Cf_BodyCOntent
> 
> 
> The request scope was introduced fairly recently - not sure 
> exactly when,
> but i think it was 4.5.
> run this snippet should let you know if it there or not...
> 
> <CFSET request.foo="bar">
> <CFIF IsStruct(request)>
>     request scope is available
> <CFELSE>
>     request scope ain't available
> </CFIF>
> 
> Bert
> 
> > -----Original Message-----
> > From: Chris Bogzevitz [mailto:[EMAIL PROTECTED]]
> > Sent: 13 November 2000 14:53
> > To: Fusebox
> > Subject: Cf_BodyCOntent
> >
> >
> > Is there a known problem with cfbodycontent and CF Server
> > 4.0.1?  I cannot
> > get any output from request.bodycontent.
> >
> > Chris
> >
> > --------------------------------------------------------------
> > ----------------
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
> > s/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=list
s/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