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>

 

posted @ 2016-12-22 09:22  伍叶春  阅读(166)  评论(0编辑  收藏  举报