I have a function that does that. It is pretty old so don't make fun of me..... but it works ;)
http://pastebin.com/m6d287cb5 On Thu, May 29, 2008 at 12:14 PM, Loathe <[EMAIL PROTECTED]> wrote: > Steve Nelson had a tag formurl2attributes.cfm > > I can't seem to find it for download though. > > Charlie Griefer wrote: > > On Thu, May 29, 2008 at 8:57 AM, Rick Faircloth > > <[EMAIL PROTECTED]> wrote: > >> ? > >> > >> <cfif isdefined('url.property_type')> > >> <cfswitch expression='#url.property_type#'> > >> <cfelse> > >> <cfswitch expression='#form.property_type#'> > >> </cfif> > >> > >> It's complaining with this error: > >> > >> Context validation error for the cfelse tag. > >> The tag must be nested inside a CFIF tag. > >> > >> Can cfswitch tags not be nested inside cfif tags? > > > > not like that, no. you need to finish the switch inside of each > condition. > > > > would be "better" to do: > > > > <cfif structKeyExists(url, 'property_type')> > > <cfset variables.property_type = URL.property_type /> > > </cfif> > > <cfif structKeyExists(form, 'property_type')> > > <cfset variables.property_type = form.property_type /> > > </cfif> > > > > then > > > > <cfswitch expression="#variables.property_type#"> > > (case statements) > > </cfswitch> > > > > i think there's a custom tag out there that will automagically put > > form/URL vars into an "attributes" scope. This is how fusebox does it > > by default (and in Model-Glue it's in the 'event')... but I seem to > > recall a custom tag that would accomplish the same end for folks who > > aren't using a framework. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306262 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

