Aug 25th, 2012, 10:55 AM
Spring JSP How to bind dynamic form data?
I am building a jsp page for entering football game results. The controller gives the JSP page a list of unsettled games and they will appear in a list in a form like this:
team1 vs team4 [hidden field: game id] [input field for home goals] [input field for away goals]
team2 vs team5 [hidden field: game id] [input field for home goals] [input field for away goals]
I never know how many games will be listed. I am trying to figure out how to set up the binding, so that the controller can access these fields after the form is submitted. Can someone please guide me in the right direction. I am using Spring MVC 3.1
Tags for this Thread