Thanks for the info, Dave... I'm finally making the transition
away from application.cfm to application.cfc...

Rick

> -----Original Message-----
> From: Dave Watts [mailto:dwa...@figleaf.com]
> Sent: Saturday, December 20, 2008 1:35 PM
> To: cf-talk
> Subject: Re: How do I create multiple mappings in application.cfc?
> 
> >> I see how to create one, but I can't find a concrete
> >> example of how to create multiple mappings:
> >>
> >> <cfset     login           =   structNew()/>
> >> <cfset     login["/login"] =   "e:\inetpub\webroot\fortstewart-sm\login"/>
> >> <cfset     this.mappings   =   login/>
> >>
> >> Now, how do I go about create another mapping for "includes"?
> >>
> >> e:\intepub\webroot\fortstewart-sm\includes
> >
> > Nevermind...I found the structInsert example in the Adobe docs...
> 
> You don't need to use StructInsert, you can create structure keys just
> like the one you created above:
> 
> <cfset mappings = StructNew()>
> <cfset mappings["/login"] = "e:\inetpub\webroot\fortstewart-sm\login">
> <cfset mappings["/includes"] = "e:\inetpub\webroot\fortstewart-sm\includes">
> <cfset this.mappings = mappings>
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317026
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to