Is ModelMap
just the new name in Spring 3 for a ModelAndView
?
Does the functionality change in Spring 3?
Consider this code in a Spring 3 app using a ModelMap
:
@RequestMapping(value = "/order", method = RequestMethod.GET)
public final String setup(final ModelMap model)
{
model.addAttribute(ORDER, new Order());
return "setup";
}
I would like to know what the equivalent use here of ModelAndView
would be in an older Spring app? Would it just require a name change from ModelMap
to ModelAndView
to get this working in Spring 2.5?