Hi,

I am using RESTful web service to make a call to my controller and I need to pass in an ArrayList<Product> that's been populated in a hidden field the jsp.

@RequestMapping(value = "/find", method = POST)
public ModelAndView displayMyProductsXXX(@RequestParam("products") ArrayList productList) throws IOException {
.
.
.
}

I tried @ModelAttribute and it didn't work. So far the @RequestParam ("products") ArrayList productList returns a list of products but the type is String instead of Product

Can anyone please help me to find out the best way to implement this?

Thanks