JSP tags

Posted on Tue 08 July 2008 by alex in geek

Arrggh. I've just wasted the best part of half a day scratching my head as to why I was unable to iterate through a Java HashMap in a JSP page:

<c:forEach var="entry" items="${model.jvmInfo}" varStatus="status">             <tr>               <td>                 ${entry.key}               </td>               <td>                 ${entry.value}               </td>             </tr>           </c:forEach>

It would of been immediately clear had I looked at the resulting HTML the page was echoing. Note to self, always check you have explicitly included the taglib you are planning to use.