If you have access to createObject() you can do this:
<cfset factory = createObject('java','coldfusion.server.ServiceFactory')>
<cfset mappings = factory.runtimeservice.getMappings()>
<cfif not structKeyExists(mappings,'/{somemapping}')>
<!--- The mapping doesn't exist, so do your stuff --->
</cfif>
Spike
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>Michael Kear
>Sent: Wednesday, May 26, 2004 10:40 PM
>To: CFAussie Mailing List
>Subject: [cfaussie] How to tell if a mapping is set up
>
>IS there a way to find out if a mapping is setup for a
>particular site in a shared hosting environment, if you don't
>have access to the CFAdministrator?
>
>
>
>(Other than asking the Sysadmin I mean). What I need to know
>if a mapping is set up for a client, and if so, what's the
>mapping name and where is it pointing.
>
>
>
>Cheers
>
>Mike Kear
>
>AFP Webworks
>
>Windsor, NSW, Australia
>
>http://afpwebworks.com
>
>
>
>---
>You are currently subscribed to cfaussie as:
>[EMAIL PROTECTED] To unsubscribe send a blank email to
>[EMAIL PROTECTED]
>MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
>http://www.mxdu.com/ + 24-25 February, 2004
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004