ColdFusion 8 Per App Settings - Mappings
According to the documentation for this feature, Per App mappings allows you to dynamically set "logical aliases for paths to directories on your server." This sounds great but the code example in the documentation is wrong and this leads to a lot of frustration.
The first problem is that the docs show how to set a mapping for an application but not how to use it. We could experiment a bit and eventually find out the exact syntax needed except for the second problem - the example code given to set the mapping is wrong.
The documentation says to use the following to set a mapping of "MyMap" pointing to the location "c:\inetpub\myStuff".
<cfinclude template="/MyMap/test.cfm">
<cfinclude template="#MyMap#/test.cfm">
<cfinclude template="/#MyMap#/test.cfm">
<cfinclude template="this.mappings.MyMap/test.cfm">
<cfinclude template="/this.mappings.MyMap/test.cfm">
<cfinclude template="#this.mappings.MyMap#/test.cfm">
<cfinclude template="/#this.mappings.MyMap#/test.cfm">
<cfinclude template="this.mappings['MyMap']/test.cfm">
<cfinclude template="/this.mappings['MyMap']/test.cfm">
<cfinclude template="#this.mappings['MyMap']#/test.cfm">
<cfinclude template="/#this.mappings['MyMap']#/test.cfm">
The solution lay partially in a blog post by Sean Corfield (Scazu Powered By ColdFusion 8) where he shows how he created a number of dynamic mappings for his application. In his example code he added a forward slash before the name of the mapping, something not mentioned in the ColdFusion documentation. This is the key. This single character makes the difference between frustrating failure and a successful feature. Adding the slash we get an setting of:
So to recap, ColdFusion 8 allows an application to have dynamic mappings. These are defined in the application.cfc using a syntax of this.mappings["/MyMap"] where MyMap is the mapping name. Once set, the dynamic mapping is used like any other mapping with a syntax of "/MyMap/...".
One fast note - We can use any name we want for a dynamic mapping even if the name is in use by a mapping set in the administrator. The only restriction is that if we try to set a dynamic mapping with "/", an error will be thrown. We always have to have some text after the forward slash.


http://coldfusion8.blogspot.com/2008/03/per-app-se...
Ahamad,
ADOBE CF Team.
Now the livedocs page seems to have "lost" the correction and comments.
http://livedocs.adobe.com/coldfusion/8/htmldocs/he...
On the site you can download a lot of interesting things.
Tory Burch Boots
Tory Burch Flats
Tory Burch Hangbags
<b>English desription of XRumer 7.08 Elite</b>:
+ it can mass post to forums, blogs, guestbooks, CMS's, socials
+ absolutely automatically break a lot of captchas (more than 100 types of captchas, <b>included ReCaptcha!</b>)
+ break more than 15.000 types of textcaptchas (such as "1+1?", "what color of snow?", etc.)
+ autoconfirmate all links from email
+ mass register profiles on forums, edit it, upload avatars, writes signature, etc.
+ have a lot of macroses
+ autoregistrate email accounts on GMail, Mail.ru, etc.
+ have special modes, for example Mass-PM, for sending PM's to all forums members
+ more, and more!
For Russian users:
+ automatically mass send messages in VKontakte, Odnoklassniki (auto-break captcha too!)
Want to post your message more than 100.000 different site all over the world?! You can make it ONLY with XRumer 7.08 Elite!
<i>(latest version was updated in November 2011)</i>
Need more info? Just <u>google</u> it ;)
Welcome to Oakley Sunglasses Hut to buy cool and cheap oakleys sunglasses.
Give me URL please!!!