JAVA/JSTL, Thymeleaf

[JSTL] Hashmap값 출력하기

dongbull 2023. 1. 4. 17:08

model로 넘어온 값 전체 출력하기

<c:forEach items="${맵이름}" var="map">
           ${map.key} = ${map.value}  
</c:forEach>

 

키로 바로 값에 접근하기

<c:out value="${맵이름['4']}"/>
728x90