I think the JRun method name called getServerName() which you are
looking for isn't the same as cgi.server_name is it?  Are you looking
for the machine name?  Is so, this code is cross CFML engine compatible:

#CreateObject("java", "java.net.InetAddress").getLocalHost().getHostName()#

Docs:
http://download-llnw.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html#getHostName%28%29

This returns the name of the machine.  For instance, that would be
"fasterme" if I ran it on my development laptop.

HTH,
.pjf


Peter J. Farrell said the following on 07/31/2010 03:54 PM:
> Alan suggested you use a dump to see what you can get at - I don't think we 
> was suggesting using a dump as a solution. I'm away from my computer but I 
> have code that gets the server name that is cross compatilble with all of the 
> cfml engines. You can look at the Mach-II dashboard code base available in 
> trac at trac.mach-ii.com/machii in the browse source tab.
>
> .Pjf
>   

-- 
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

Reply via email to