Having this basic function
protected ModelAndView handleRequestInternal(...) {
...
return new ModelAndView("welcomePage", "WelcomeMessage", message);
}
I know that this will return modelandView.
I know that welcomePage
is my viewname so that means something like welcomepage.jsp
will get called.
But I am confused with what is Model part.
What is WelcomeMessage
and message
and how Model work in that scenario?