数据结构:List中嵌套List,并将两个List中的信息在JSP页面中打印出来。
来源:互联网 发布:mac win7虚拟机下载 编辑:程序博客网 时间:2024/05/21 09:28
数据结构:List中嵌套List,并将两个List中的信息在JSP叶面中打印出来。
此处利用了Struts标签(nested:iterate)中的属性length和offset。
<table>
<tr>
<td class="table_td1" width="25"valign="top" align="center" rowspan="<nested:write property="size"/>"><nested:write property="blockNo"/></td>
<td class="table_td1" width="145" valign="top" align="left" rowspan="<nested:write property="size"/>"><nested:write property="blockName"/></td>
<td class="table_td1" width="60" valign="top" align="center" rowspan="<nested:write property="size"/>"><input type="button" value="変更"></td>
<td class="table_td1" width="60" valign="top" align="center" rowspan="<nested:write property="size"/>"><nested:checkbox property="optBox" value="true" styleId="authBox"/></td>
<td class="table_td1" width="60" valign="top" align="center" rowspan="<nested:write property="size"/>"><input type="button" value="追加" onclick="add('<nested:write property="blockNo"/>','<nested:write property="blockName"/>')"></td>
<nested:iterate property="cusServerInfoList" indexId="index" length="1">
<td class="table_td1" width="165" align="left"><nested:write property="serverName" /></td>
<td class="table_td1" width="105" align="center"><nested:write property="ipAddress" /></td>
<td class="table_td1" width="60" align="center">
<nested:checkbox property="optBox1" value="true" />
</td></nested:iterate>
</tr>
<nested:iterate property="cusServerInfoList" indexId="index" offset="1">
<tr>
<td class="table_td1" width="165" align="left"><nested:write property="serverName" /></td>
<td class="table_td1" width="105" align="center"><nested:write property="ipAddress" /></td>
<td class="table_td1" width="60" align="center"><nested:checkbox property="optBox1" value="true" /></td>
</tr>
</table>
- 数据结构:List中嵌套List,并将两个List中的信息在JSP页面中打印出来。
- 将servlet中的list传递到JSP页面中去
- 在 jsp页面中遍历list中的数据
- list转换json并将其在jquery中解析出来
- 将一个List中的值遍历出来放到另一个List中
- 在jsp页面中使用list列表来传递信息到action
- action传list到jsp页面,js接收并解析list(struts2中)
- 在JSP页面中显示List集合·
- 集合List中消除重复值与取得两个List中的交、并、差集
- 在python中如何将两个list合并成一个list,不用for语句
- struts2中从数据库中读取数据,并在JSP页面中遍历保存有JavaBean对象的List对象
- 在jsp页面中EL多条件判断、${list.size} 和 ${fn:length(list) }
- jsp页面中显示list的长度
- Python打印list中的所有元素(list嵌套)
- Struts2——将字符串、对象、list集合保存到值栈中,在jsp页面中获取的方法
- jsp中在<%%>里面获取list
- jstl中list嵌套map
- Map集合中嵌套list
- [全程建模]《软件工程之全程建模实现》一书第二版签约公告
- 如何才能学好C#
- 编程的艺术:漂亮的代码和漂亮的软件
- 表单中文本框中数据合法性的检查
- 在Dos批处理中判断注册表项是否存在
- 数据结构:List中嵌套List,并将两个List中的信息在JSP页面中打印出来。
- 一粒土换一座山
- erlang的哲学
- Flash学习--修改文字特效
- 取得两个List的交集,retainAll()方法
- 负载平衡
- 画册里的旅程
- 工信部关白玉处长详解“核高基”
- ERROR [ValidatorFileParser] Attribute "short-circuit" must be declared forelement type "field-validator".