House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Referencing an application var from another app?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rich Ziade
04/26/2004 02:58 PM

Is there a way to reference an application variable stored in the scope of app X from another application? For example, an app called bigapp has an app variable called: application.x. Is it possible to get to that variable from another application for example? Thanks, Rich

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Barney Boisvert
04/26/2004 03:08 PM

Rather hackish, but I've done this on occasion and it works: <cfapplication name="myapp" /> <cfset application.myvar = "test" /> <cfapplication name="bigapp" /> <cfset request.temp = application.myOtherVar /> <cfapplication name="myapp" /> <cfset application.myOtherVar = request.temp /> Cheers, barneyb ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Samuel R. Neff
04/26/2004 03:32 PM

You can use the Java object coldfusion.runtime.ApplicationScopeTracker to access all Application variables for any application running in the same server instance. http://tech.badpen.com/index.cfm?mode=entry&entry=3 HTH, Sam ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference