<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;" οnclick="return false;" style="cursor: default;">无附件</a>
</c:otherwise>
</c:choose>
转载于:https://www.cnblogs.com/CESC4/p/7232225.html