<c:if 判斷對象或集合是否為空
判斷集合和對象是否為空:
list為集合,user為對象名
<c:if test="${empty user}">無user信息!TODO...</c:if>為空
<c:if test="${!empty list}">list集合不為空判斷,TODO...</c:if>非空
<s:if 判斷對象是否為空
<s:if test="null==user||user.isEmpty()">
集合為空
</s:if><s:else>
集合不為空
</s:else>
or
<s:if test="null!=user&&!user.isEmpty()">
集合不為看空
</s:if>
