Announcement Announcement Module
Collapse
No announcement yet.
Spring JSP How to bind dynamic form data? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring JSP How to bind dynamic form data?

    Hello.

    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
Working...
X