How to pass post array parameter in Spring MVC

I was just wondering how to pass in post parameters such as following exercept from html options, normally i would get a array in language such as php (POST['param'][0]... would work i believe)

url?param=value1&param=value2&param=value3

I tried:

@RequestMapping(value="/schedule", method = RequestMethod.POST)
public void action(String[] param)

But this doesn't work for some reason...

Any ideas would be greatly appreciated!

40
задан FurtiveFelon 22 March 2011 в 23:57
поделиться