`
thtwin
  • 浏览: 165967 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

JSTL中定义String数组

阅读更多
<c:choose>
<c:when test="${findArticle.picAddr == 'none'}">没有图片</c:when>
<c:otherwise>
<!--picUrl是存储在request中的数组-->
<c:forEach items="${picUrl}" varStatus="status">
<a href="../../picinfo/${picUrl[status.count - 1]}" mce_href="picinfo/${picUrl[status.count - 1]}" target="_blank">
<img src="../../picinfo/${picUrl[status.count - 1]}" mce_src="picinfo/${picUrl[status.count - 1]}"  width="140px" height="100px"
style="cursor:pointer;"
onmouseover="showtrail('../../picinfo/${picUrl[status.count - 1]}','点击查看原图',300,300)"
onmouseout="hidetrail()"
border="0"
/>
</a>
</c:forEach>
</c:otherwise>
</c:choose>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics