April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Spring-MVC Objects
nModel & View
nMany of the methods in the Controller related subclasses return a org.springframework.web.servlet.ModelAndView object.This object holds the model (as a java.util.Map object) and view name and makes it possible to return both in one return value from a method.
n
nCommand (Form Backing) Object
nSpring uses the notion of a command object, which is a JavaBean class that gets populated with the data from an HTML form’s fields.
nThis same object is also passed to our validators for data validation, and if the validations pass, it is passed to the onSubmit method (in controller related classes) for processing of valid data.