手机
当前位置:查字典教程网 >编程开发 >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 页面上图片分行输出小技巧】相关文章:

JScript中正则表达式用法详解

jsp实现页面实时显示当前系统时间的方法

JSP生成jpeg图片用于投票

JSP中图片验证是如何实现

JSP页面查询显示常用模式

jsp 标准标签库简析

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

多种方法实现当jsp页面完全加载完成后执行一个js函数

提升JSP页面响应速度的七大技巧

jsp页面传参乱码的解决方法

精品推荐
分类导航