I am trying to post a String[] from client to Spring 3. In Controller side i have defined the method like this.
@RequestMapping(value = "somemethod", method = RequestMethod.POST)
public ModelAndView exportSomething(@RequestParam("sentences") String[] sentences) {
//.. logic
}
The data that im sending looks like this
sentences: ["a","b,c","d"]
The problem is in server side the size of the sentences array is 4. It is splitting b and c as two different words.
Is this a issue with Spring or do i need change something the way i pass on the data?
Its a know issues I guess with Spring framework. See https://jira.springsource.org/browse/SPR-7963