Posted
Filed under JSP, JAVA
여러개의 List 를 가지고 있는 Map 객체를 JSTL에서 처리하는 예.
        <c:forEach items="${serviceGroupMap}" var="serviceGroupListMap">
        <div id="${fn:replace(fn:replace(serviceGroupList.key, ' ',''),'&','')}">
            <div class="toolbar">
                <h1>${serviceGroupListMap.key}</h1>
                <a class="button back" href="#">Back</a>
            </div>
            <ul class="edgetoedge">
                <c:forEach items="${serviceGroupListMap.value}" var="serviceGroup">
                <li class="arrow"><a id="0" href="systems.html">
                <span class="severity${serviceGroup.severity }">&nbsp;&nbsp;</span>
                <span>${serviceGroup.name}</span>
                </a></li>
                </c:forEach>
            </ul>
        </div>
        </c:forEach>

기타 JSTL 관련 참조 http://www.cs.wcupa.edu/rkline/Java/jstl-examples.html
2011/03/22 21:03 2011/03/22 21:03