RE: removing a mapping programatically

2003-09-05 Thread Tim Blair
Simple, just delete the key from the structure.  Extending Spike's
example:


// get mappings
factory = createObject('java','coldfusion.server.ServiceFactory');
mappings = factory.runtimeservice.getMappings();
// create new mapping
mappings['/foo'] = "c:\somepath\foo";
// remove mapping
structdelete(mappings, "/foo");


Tim.


---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us free
anytime on 0800 294 24 24.
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


> -Original Message-
> From: Mauricio Giraldo [mailto:[EMAIL PROTECTED] 
> Sent: 04 September 2003 18:36
> To: CF-Talk
> Subject: removing a mapping programatically
> 
> 
> Hi
> 
> I read Spikefu's blog where he shows how to create a mapping 
> programmatically: 
> http://www.spike.org.uk/index.cfm?objectid=87E72480-22AB-07A9-
6F4F907DBBE52317

How would you delete a mapping programmatically?

Mauricio

_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es


~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com


removing a mapping programatically

2003-09-04 Thread Mauricio Giraldo
Hi

I read Spikefu's blog where he shows how to create a mapping 
programmatically:
http://www.spike.org.uk/index.cfm?objectid=87E72480-22AB-07A9-6F4F907DBBE52317

How would you delete a mapping programmatically?

Mauricio

_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com