[Logo] smithproject.org
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
Output Scope Variables?  XML
Forum Index -> Advanced Techniques
Author Message
daveed



Joined: 22/06/2007 17:11:28
Messages: 6
Location: Austraila
Offline

How do you get some scope variables that are being displayed in the
bebug.jsp page

I how do i refference.

Like:
#Server.ColdFusion.ProductVersion# Gives me the the version so is that the correct way to call?


Smith Engine Version:
ApplicationServices.getSmithVersion()



I tryed just calling the bebug.jsp i placed it in the wwwroot but i get output error;

orcus



Joined: 22/01/2007 16:10:52
Messages: 136
Offline

Hi daveed!

Yes, #server.coldfusion.productversion# is the correct way to access this info.

To find out what data is available in various scopes, open "Debugging Settings" in admin console. Make sure "Debug enabled" option is checked, then check all boxes in "Debug Scopes" section (Application, Cookie, Server, CGI, Form, Session, Client, Request, URL). Don't forget to save settings.

Now, when you open a page, you can scroll down and see "tree-like" structure of each scope.

Another way was to use <cfdump var="#server#"/> to see what this concreet scope contains. <cfdump/> shows the same tree-like structure of the scope.

Regards!
 
Forum Index -> Advanced Techniques
Go to:   
Powered by JForum 2.1.6 © JForum Team