File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Indexed Properties with no index Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Indexed Properties with no index" Watch "Indexed Properties with no index" New topic
Author

Indexed Properties with no index

Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15021

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.


My Blog | DZone Articles
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15021

params['agendaItems[]']

That is how I had to access the array.
 
 
subject: Indexed Properties with no index
 
developer file tools