手机
当前位置:查字典教程网 >编程开发 >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页面完全加载完成后执行一个js函数

jsp源码实例1(输出)

jsp页面的多选框传递

多个jsp页面共享一个js对象的超级方法

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

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

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

jsp页面间传中文参数示例

jsp中点击图片弹出文件上传界面及预览功能的实现

在jsp页面中响应速度提高的7种方法分享

精品推荐
分类导航