Model in Spring MVC

you can use the model items like ${modelitem} but you had to put the modelitm in the model prior to that, something like model.put(modelitem, “this is modelitem”)

Rule of thumb when you need to manipulate data in your MVC application:
Try looking into the referenceData method in your controller, this is the main method grabbing data from resources and adding them into the model object. Look for something like:

protected Map referenceData(HttpServletRequest request, Object command,Errors errors) throws Exception

Leave a Reply

Your email address will not be published. Required fields are marked *