Iterating over a HashMap with JSTL, always getting last Object
- by hkansal
Hello,
I have a Map, which I tried to iterate over with JSTL. Somehow I could not accomplish even this basic task. I also referred the questions here and here, but that is what I am already doing, still no success.
What I tried to do was:
<c:forEach items="${myMap}" var="myEntry">
${myEntry.key} + ${myEntry.value}
</c:forEach>
But I always get the last object.
Maybe I am missing something trivial, please advise.
Thank You