-
Sep 10th, 2010, 10:49 AM
#1
Spring 3 - Restful - passing ArrayList<object> to the controller
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules