Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC binding with List of Objects

 
mark xu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. It's a bug in spring 3.01. Upgrade to 3.02 everything works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic