JSTL标签
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:if test="${res.sfgk=='有条件公开'}"> <div class="form-group"> <label class="col-md-4 control-label">公开条件说明:</label> <div class="col-md-4"> <p class="form-control-static"> ${res.qksm} </p> </div> </div> </c:if>
<c:if test="${ fn:length(res.zwbm)>18}"> ${fn:substring(res.zwbm, 0, 18)} ... </c:if> <c:if test="${ fn:length(res.zwbm)<=18}"> ${res.zwbm} </c:if>