『壹』 jsTL 如何判断集合size
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
${fn:length(abc)}
『贰』 JSTL 判断对象是否为空
<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:elseor<s:if test="null!=user&&!user.isEmpty()"
集合不为看空</s:if