I've got a tag file, "nav.tag" with the following attribute:
<%@ attribute name="navigation" rtexprvalue="true" type="java.util.Map" %>
I get nothing when I attempt to assign a Map value to a variable like this:
<c:set var="articleSection" value="${navigation['ARTICLE']}" />
However, this works:
<c:forEach items="${navigation}" var="s">
<c:choose>
<c:when test="${s.key == 'ARTICLE'}">
<c:set var="articleSection" value="${s.value}"/>
</c:when>
</c:choose>
</c:forEach>
Looping through the map keys this way is cumbersome. According to the docs the bracket notation should work. Is there something I'm missing?
Thanks!
James