JSP页面遍历循环List map

JSP页面遍历循环List<Map<String, Object>>

<%@  taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 

ActionContext.getContext().getSession().put("msgg", list);

<c:forEach items="${msgg}" var="list">
            <tr>
                       <c:forEach items="${list}" var="map">

                         <td>${map.key}</td>
                         <td>${map.value}</td>
                </c:forEach>
            </tr>
        </c:forEach>

猜你喜欢

转载自blog.csdn.net/weixin_42666837/article/details/83269952