When JSPs are created they have no relationship to a request and its  
subsequent response. Thus, they need a "context" to tie the request and  
  response to themselves. The Servlet engine does this by providing a  
PageContext object. Since CFMs -- and unfortunately CFCs -- are just  
specialized JSPs they require a PageContext to be associated with a  
request and response. Since it is possible to persist CFC instances  
across requests using the provided shared memory scopes, CFC instances  
can be tied to the wrong PageContext.

-Matt

On Friday, August 1, 2003, at 11:09 AM, Raymond Camden wrote:

>>
>>> Take a CFC. Cache it (ie, application.foo = the cfc). On the
>> 2nd-N page
>>> requests, any method in the cfc that references other scopes
>> (imagine
>>> one that uses application.dsn) or tries to output instead of
>> returning
>>> data, will fail.
>>
>> Gotcha, thanks.
>>
>> How is this related to PageContext, though?
>>
>
> My understanding (and this is most likely wrong) is that the  
> PageContext
> ob allows things like access to the scopes, access to output, etc. I'm
> probably wrong about it - but you get the basic idea. Short answer is
> that you don't have to worry about it in RedSky. ;)
>
> ======================================================================= 
> =
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
>
> Email    : [EMAIL PROTECTED]
> Blog     : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to