Web News

Global effort needed to combat cyber crime: India
Law enforcement agencies across the globe should join hands and evolve a strong mechanism to fight cyber crimes that have emerged as new threats to nations, Home Minister Shivraj Patil said in New Delhi.

Coming soon, a health policy for the IT sector
India may lose its IT edge over others as employees in the sector are increasingly becoming prone to health hazards and a 'dedicated health policy' would be formulated soon to tackle this, Health Minister...

Tata Indicomm launches Samsung handset with...
Tata Indicomm launched its mobile web browser handset in association with Samsung Telecommunications India here Thursday. 'This innovation is an important step in extending the power of the Internet to mobile...

India adds 5.95 million GSM mobile subscribers in August
India added 5.95 million new subscribers in the GSM mobile telephony segment in August, with their total number touching 147.7 million, said an industry body here Thursday. Bharti Airtel, the country's largest...


09.13.07


ColdFusion Mapping Names & Conflicts

By Raymond Camden

This weekend a reader asked me an interesting question about ColdFusion mappings.

Imagine the following two mappings:

• Mapping /org points to /Webserver/Webroot

• Mapping /org/foo points to /projects/foo.com

He was curious to know if this would work right. The second mapping looks to be under org, but really points to a completely different path. I didn't know the answer to this. Every single mapping I've used in the past has always had a simple name, like /org or /foo.

I whipped up a quick test with two mappings named like the examples above. I put the same named CFC in each, but with different methods. I then wrote a quick script:



The results showed that there was no problem having mappings with similar names in completely different folders. ColdFusion treats the mapping name as just a simple string.


The fact that one was a and one was a/b didn't imply anything special to the server.

The problem - though - would be that if someone put a physical folder named "b" under the folder that my "a" mapping pointed to - there would be a conflict.

Which would win? The mapping.

I would definitely recommend having mapping names that did not match up like the examples aboe.

Comments

About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com

Raymond Camden is Vice President of Technology for roundpeg, Inc. A long time ColdFusion user, Raymond has worked on numerous ColdFusion books and is the creator of many of the most popular ColdFusion community web sites. He is an Adobe Community Expert, user group manager, and the proud father of three little bundles of joy.

About DevWebPro India
DevWebPro India is for professional developers ... those who build and manage applications and sophisticated websites. DevWebPro India delivers via news and expert advice New Strategies In Development.

DevWebPro India is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com


-- DevWebPro India is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


New Strategies In Development DevWebPro India News Archives About Us Feedback DevWebPro India Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact