手机
当前位置:查字典教程网 >编程开发 >JSP教程 >jsp 页面上图片分行输出小技巧
jsp 页面上图片分行输出小技巧
摘要:

<table border="0" cellpadding="2">

<c:forEach items="${pics}" var="pic" varStatus="status">

<c:if test="${((status.index)%3)==0}"><tr></c:if>

<td>

<input name="bk_no" type="radio" value="${pic.piccode}"

<c:if test="${status.index==0}">checked</c:if>

onClick='changeVal(this.value)'/>

<c:if test="${not empty(pic.logoPath)}"><img src="${pic.logoPath}"></c:if>

<c:if test="${empty(pic.logoPath)}"><c:out value="${pic.picname}"/></c:if>

<input type="hidden" name="bk_name" value="<c:out value="${pic.picname}"/>">

</td>

<c:if test="${((status.index+1)%3)==0}"></tr></c:if>

</c:forEach>

</table>

【jsp 页面上图片分行输出小技巧】相关文章:

JSP中图片验证是如何实现

jsp页面获取服务器时间的简单调用示例

jsp页面间传中文参数示例

JSP页面中的精确到秒的时间控件

JScript中正则表达式用法详解

jsp 页面显示的一些用法

jsp页面中如何将时间戳字符串格式化为时间标签

jsp页面中插入css样式的三种方法总结

在jsp页面如何获得url参数

jsp中页面间传汉字参数转码的方法

精品推荐
分类导航