File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring MVC binding with List of Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC binding with List of Objects" Watch "Spring MVC binding with List of Objects" New topic
Author

Spring MVC binding with List of Objects

mark xu
Greenhorn

Joined: Sep 22, 2006
Posts: 4
I'm having problem to get spring binding work with list of objects, here is the situation, I have a class:

The JSP that show the list of apps is like this:


My controller method that populate the objects (to JSP) and handle the post request is this


The problem is that the JSP show up with all the information correctly. However, when I click submit button, in the controller, the UserApp object I got only contain the usrId, the other property apps is empty. What did I do wrong? Thanks for reading
mark xu
Greenhorn

Joined: Sep 22, 2006
Posts: 4
I figured it out. It's a bug in spring 3.01. Upgrade to 3.02 everything works now.
 
wood burning stoves
 
subject: Spring MVC binding with List of Objects