Thursday, 15 August 2013

How to pass multiple model objects from controller and how to pass all as command objects into the form:form in spring mvc?

How to pass multiple model objects from controller and how to pass all as
command objects into the form:form in spring mvc?

The scenario is like I want to pass more than one model objects from
controller which I can achieve like,
model .addAttribute("person", new Person());
model.addAttribute("address", new Address());
But how to pass both of them or more in spring view
<form:form action="registration" command="person">
As it only allows me to pass only one command . Then how to pass all the
require command over their.

No comments:

Post a Comment