【JSTL】c:choose用法
<c:choose>
<c:when test="${x.attachPath!=null&&x.attachPath!=''}">
<a href="http://service.huadongdata.net/boyun/${x.attachPath}" class="u_btn1" target="_blank">查看</a>
</c:when>
<c:otherwise>
<%-- <a class="u_btn1" target="_blank">无附件</a>--%>
<a href ="javascript:return false;" onclick="return false;" style="cursor: default;">无附件</a>
</c:otherwise>
</c:choose>