Change:  <cfloop index="#mls#" list="#form.featured_property#">
to:  <cfloop index="mls" list="#form.featured_property#">

Your trying to reference the #mls# as a variable rather than setting the
variable using the list element.


On Mon, Oct 6, 2008 at 9:26 AM, Rick Faircloth <[EMAIL PROTECTED]>wrote:

> Good morning all...
>
> Trying to loop this a list of values from a series of form fields that
> all have the same name.
> I have a series of checkboxes, all named "featured_property", each with
> a different value.
>
> I'm submitted for the form and can cfdump the value of
> '#form.featured_property#' and get
> my list of values ... 96878,88383,83678,83888.
>
> Why I try to loop the '#form.featured_property#' values like this...
>
> <cfloop index="#mls#" list="#form.featured_property#">
>
> <cfoutput>#mls#</cfoutput>
>
> </cfloop>
>
> ....I get this error:
>
> Error casting an object of type*
> coldfusion.compiler.ASTsimpleVariableReference cannot be cast to
> java.lang.String*
> to an incompatible type. This usually indicates a programming error in
> Java, although it could also mean
> you have tried to use a foreign object in a different way than it was
> designed.
>
>
>  coldfusion.compiler.ASTsimpleVariableReference cannot be cast to
>  java.lang.String
>
>
>
> How can modify my loop to avoid this error?  Or am I taking the wrong
> approach with
> a form value?
>
> Thanks,
>
> Rick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:313452
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to