I have a hashmap, which is put to the request:
HashMap<Integer, String> myMap = ...
request.setAttribute("myMap", myMap);
In JSP I have a foreach loop
<c:forEach items="${list}" var="item" varStatus="status">
<c:out value="${item.description}"/>
<c:out value="${myMap[item.id]}"/>
</c:forEach>
but ${myMap[item.id]}
does not work. How can I access hashmap's value by item.id
variable ?