While the methods you mention are page specific, I think you can
accomplish what you want by using Application variables. Ie: (and this
is non-locked mx code)
<cfif not isDefined("application.foo")>
<cfset application.foo = "Bantha Fodder">
</cfif>
However - there is no way to catch the expiration of the application
scope, and as I said, what you want is page specific, and this value is
application wide.
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Email : [EMAIL PROTECTED]
WWW : www.camdenfamily.com/morpheus
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Christian Cantrell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 10:21 PM
> To: CF-Talk
> Subject: init and destroy
>
>
> All JSP pages (or the servlets they compile into) have a
> jspInit() and
> a jspDestroy() function. jspInit() is guaranteed to only run
> once, so
> it's a nice place to put code that you do not want executed
> with every
> request, and jspDestroy() is called when the servlet engine is shut
> down just before the object is garbage collected. Does
> anyone know how
> to override jspInit() and jspDestroy() in ColdFusion MX, or how to
> accomplish the same thing another way? If there is no native way, I
> will probably write a cf_init custom tag.
>
> Thanks,
> Cantrell
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm