How to get the first item on the jsp page from the Map .
Map<Long,MyObject> map = ...... model.addAttribute("statuses", map); There is such a code on the JPS page.
<c:set var="myvalue" value="${statuses[0].value.myfield}"/> //error <c:forEach var="status" items="${statuses}"> .... </c:forEach> How to get the first element that will be in a forEach loop?