jstl 中的<c:if test="${}">
如判断某个list对象是否为空时,就可以通过
<c:if test="${empty list名}">
来判断,
条件判断是使用or==|| ,and==&&
如判断某个list对象是否为空时,就可以通过
<c:if test="${empty list名}">
来判断,
条件判断是使用or==|| ,and==&&
<s:if test="insideNews.topPic!=null">
<img src="${ctx}${insideNews.topPic}" width="308" height="220" />
</s:if>
<s:else>
<img src="images/new_pic.gif" width="308" height="220" />
</s:else>
${!empty insideNews.topPic}