After reading the other related posts, I could also go for <cfapplicationparam ... /> instead of <cfmapping ... />.
However, in an application.cfc how would you specify mappings? Hmmm. How about an array of structs? <cffunction name="onApplicationStart" ...> <cfscript> mappings = arrayNew(1); mappings[1] = structNew(); mappings[1].name = "mapName1"; mappings[1].dirPath = "d:\inetpub\mapdirectory"; this.mapping = mappings; ... </cfscript> </cffunction> M!ke -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dawson, Michael Sent: Saturday, October 01, 2005 6:01 PM To: [email protected] Subject: RE: [CFCDev] Java CFCProxy info? I agree. CFMAPPING would be more-flexible than another attribute in CFAPPLICATION. If this is finally implemented in CF, I certainly hope the values allow for dynamic variables and not just hard-coded values. Bad: <cfapplication ...> <cfmapping name="literalTextOnly" directory="literalDirOnly" /> </cfapplication> Good: <cfset mapName1 = variableReadFromFile> <cfset mapDir1 = variableReadFromFile> <cfset mapName2 = variableReadFromDatabase> <cfset mapDir2 = variableReadFromDatabase> <cfapplication ...>b <cfmapping name="#mapName1#" directory="#mapDir1#" /> <cfmapping name="#mapName2#" directory="#mapDir2#" /> </cfapplication> M!ke -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vince Bonfanti Sent: Friday, September 30, 2005 12:51 PM To: [email protected] Subject: RE: [CFCDev] Java CFCProxy info? Sorry, Jim, I had missed your earlier email. I think I like the idea of a new CFMAPPING tag better than redefining the CFAPPLICATION tag to have a tag body and contain CFAPPLICATIONPARAM tags. The former seems less radical. Vince ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
