I'm new to Spring MVC and I wonder how can I print a table from database in my jsp page.
I used to do like this using Java servlet :
<div class="alert alert-info" role="alert">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
<%
HashMap<String,Status> statusMap = new HashMap<String,Status>();
statusMap = AppUtils.getJobStatusLong();
DatabaseController db_controller = (DatabaseController)application.getAttribute("db_controller");
db_controller.openConnection();
out.print("<span> Today is "+AppUtils.getDate()+". You have " +db_controller.getClientNumber()+
" clients and "+db_controller.getJobNumber()+" jobs. </span>");
%>
</div>
But I've heard that in Spring MVC view and model are strictly devided, so normally I shouldn't use Java scriplet in JSP ? But how to do it without Java scriptlet?
Thanks.