Java / Spring / JSP - how to output value added using ModelAndView.addObject
- by Jon morgan
Hi,
I have the following code in my controller
final ModelAndView m = new ModelAndView();
m.addObject("date", "15" );
In my view I have been able to output this by doing
${date}
However how can I print it out using out.print or assign it to a new variable
e.g.
<% out.print( ${date} ) %>
Thanks