In spring mvc, I noticed the models are passed as a name/value pair into the ModelAndView.
is it possible to create a strongly typed model and pass it to the view?
this way the caller in the view can't access a string index that doesn't exist.
In spring mvc, I noticed the models are passed as a name/value pair into the ModelAndView.
is it possible to create a strongly typed model and pass it to the view?
this way the caller in the view can't access a string index that doesn't exist.
JSTL isn't type-safe - it's a scripting language. Furthermore, you'll need a sophisticated validation tool to check the correctness of the jsp.
So I don't think you are able to do this.