aspose file tools*
The moose likes Groovy and the fly likes Indexed Properties with no index Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Indexed Properties with no index" Watch "Indexed Properties with no index" New topic
Author

Indexed Properties with no index

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Grails 1.3.1

I am using a jQuery library that sends a serialized parameter map to the server and it is formatted like so....

item[]=1&item[]=2&item[]=3

In my controller, when I do println params, it comes out...

[item[]: [1, 2, 3]]

I can't seem to get this data out of params in my controller, however. What am I missing?

BTW, I have also asked this question on SO here and will update this thread with responses if I get any. They just seem to get a bit more Grails traffic than we do.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

params['agendaItems[]']

That is how I had to access the array.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Indexed Properties with no index