@RequestMapping(value = "/index", method = RequestMethod.GET)
public final String index(final ModelMap model)
{
List myModels = ArrayList<MyModel>(getMyModels());
model.addAttribute("mymodel", myModels);
return "index";
}
In Spring I put the
myModelslist into theModelMapto be passed to the "index" view. How do I then access thoseMyModelobjects from the JSTL code?Is it necessary for this controller method to be
finaland for theModelMapparameter to befinal?