The function equals must be used with a prefix when a default namespace is not s

The function equals must be used with a prefix when a default namespace is not specified
解决方案:
<c:if test="${user.headImg!=null && !(user.headImg).equals('')}">
<img src="${ctx}${headImgUrl}${user.headImg}" style=" width: 40px; border-radius: 50%; border: 3px solid #c2ccd1; "></c:if>
<c:if test="${user.headImg==null || (user.headImg).equals('')}">
<img src="${ctxStatic}/bootstrap/2.3.1/img/head_pic.png"></c:if>

改为
<c:if test="${user.headImg!=null && !(user.headImg eq(''))}">
<img src="${ctx}${headImgUrl}${user.headImg}" style=" width: 40px; border-radius: 50%; border: 3px solid #c2ccd1; "></c:if>
<c:if test="${user.headImg==null || user.headImg eq('')}">
<img src="${ctxStatic}/bootstrap/2.3.1/img/head_pic.png"></c:if>

猜你喜欢

转载自yangyongjie.iteye.com/blog/2335557