直接看代码:
<!-- 条件 -->
<c:if test="${list.size() > 0}">
...
</c:if>
<!-- foreach -->
<c:forEach items="${Map.chineseName}" var="chineseName">
<c:forEach items="${chineseName}" var="name">
<div>${name}</div>
</c:forEach>
</c:forEach>
<!-- 条件选择 -->
<c:choose>
<c:when test="${list.size() > 0}">
...
</c:when>
<c:otherwise>
...
</c:otherwise>
</c:choose>
网友评论