日期:2014-05-17 浏览次数:20783 次
<c:choose>
<c:when test="${ param.op eq 'm' }">
<c:when test="${ fn:split(product.smallpic, '|')[0] eq null }">暂无图片</c:when>
<c:otherwise>
<img id="product${ product.tp_id }" src="${ pageContext.request.contextPath }/${ fn:split(product.smallpic, '|')[0] }" width="60" height="60" />
</c:otherwise>
</c:when>
</c:choose>
<c:choose>
<c:when test="${ param.op eq 'm' }">
<c:when test="${empty fn:split(product.smallpic, '
------解决方案--------------------
')[0] }">暂无图片</c:when>
<c:otherwise>
<img id="product${ product.tp_id }" src="${ pageContext.request.contextPath }/${ fn:split(product.smallpic, '
------解决方案--------------------
')[0] }" width="60" height="60" />
</c:otherwise>
</c:when>
</c:choose>
确保你param.op这样能取到值。
<c:when test="${ param.op eq m }">