wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name ...
List not refreshing after submit
Spring MVC AbstractWizardFormController: Cannot see ArrayList populated in controller
how to prepopulate a form using form:input tag?
Spring problem (SimpleFormController)