Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store java class reference in application variable 1

Status
Not open for further replies.

nelsonlc

Programmer
Apr 4, 2001
2
US
Can I store a java class reference in an application or session variable?

Thanks in advance.
 
You can store anything in an application variable as long as it can be represented as a string. Just remember that CF variables are only available on the server. When the page is complete and returned to the browser, Javascript & Java can't see these variables.

Good luck,
GJ
 
Thanks GunJack for your fast response.

I want to use the java class at the server side, using <CFOBJECT>.

NelsonLC
 
If you're going to store some type of path that you pass through <cfobject>, you shouldn't have any trouble. You probably want to store it as an application variable if you want it to be the same across all users. If it will vary between users, then a session variable would be best. Just remember to use locking around any session/application variables though as they are considered a shared scope.

Good luck,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top