I believe what Alan was recommending was for you to dump server scope and request scope just to see if there is anything in there to help you, rather than just to dump it for fun at the beginning of every request. :) However, Sean's answer is probably exactly what you need though and is obviously portable as well.
~Dave Shuck /************************************** blog: www.daveshuck.com tweets: www.twitter.com/dshuck cf peeps: www.dfwcfug.org **************************************/ On Sat, Jul 31, 2010 at 9:40 AM, Guillermo <[email protected]> wrote: > I need the equivelant which runs in application.cfm to get the > servername so I can set a variable called "environment". dumps are not > the answer. > > On Jul 31, 9:27 am, Alan Williamson <[email protected]> wrote: > > Try doing <cfdump var="#server#"> and see if there is anything in > > there for you. > > > > Also <cfdump var="#request#"> will show you the context you are in too > > if you are under j2EE > > > > On Jul 31, 3:25 pm, Guillermo <[email protected]> wrote: > > > > > > > > > Okay I cant seem to find out how to do this. I am looking for the > > > equivelant to the class jrunx.kenrel.JRun. It provides the method > > > getServerName() which I use to define if we are in dev or prod anyone > > > know what I would use in OpenBD? basically it just returns the context > > > path but there are other useful methods in that class.- Hide quoted > text - > > > > - Show quoted text - > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > official manual: http://www.openbluedragon.org/manual/ > Ready2Run CFML http://www.openbluedragon.org/openbdjam/ > > mailing list - http://groups.google.com/group/openbd?hl=en > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon official manual: http://www.openbluedragon.org/manual/ Ready2Run CFML http://www.openbluedragon.org/openbdjam/ mailing list - http://groups.google.com/group/openbd?hl=en
