I am new to jsp and using jstl
library. I have a HashMap
and a List
of Keys
to print corresponding in an ordered fashion.
I am doing:
<%
request.setAttribute("obj", javaObject); //javaObject contains a map and list
%>
<c:forEach var="x" items="${obj.listElem}">
${obj.map[$x]} //does not print map content for a Key
</c:forEach>
Am I missing something here?