Sending Arrays from javascript to ColdFusion and Railo - The diferences

by 8:43 AM 11 comments

Wile attempting to answer a question on Stack Overflow I ran into an interesting difference between Railo and ACF

I've begun to use Railo more and more and this simple piece of code I expected would "just work". Well on Railo it did. On ACF it did not.

ACF sees the js array passed as a variable names "array[]" ( literally ) with a comma separated string as the arguments. Railo sees this as an array server side and treats it as such. See the results. ( not I have a cfdump is the ajax call using fire bug I can see the result of the dump of the arguments scope )

Railo:



AFC:




CFC:


CFM: