C标签判断两个值是否相等

c标签判断两个值是否相等

Integer用:${user1.id eq user2.id};
int用:${user1.id == user2.id}

测试代码如下:
<c:if test="${not empty listByParentId }">
    <c:forEach items="${listByParentId }" var="listByParentId">
       <c:if test="${listByParentId.parentId eq list.cwId }">
    …………
    …………
    …………
    </c:if>
  </c:forEach>
</c:if>