<logic:iterate>在这标签迭代后获得数据库的值以列形式显示,然后我想选择性地删除其中的几列而不对数据库操作,应该怎么做。
<table width="100%" cellpadding="0" cellspacing="0" class="FormListTable" >
<Tr align="center">
<td width="5%" nowrap class=FormListTableHead>
<input class="FormCheckBox" type="CheckBox" onClick="javascript:changeCheck()">
</td>
<td width="20%" nowrap class=FormListTableHead>物品名称</td>
<td width="10%" nowrap class=FormListTableHead>物品类型</td>
<td width="10%" nowrap class=FormListTableHead>领用数量</td>
<td width="10%" nowrap class=FormListTableHead>单位</td>
<td width="15%" nowrap class=FormListTableHead>参考单价</td>
<td width="20%" nowrap class=FormListTableHead>备注</td>
<td width="10%" nowrap class=FormListTableHead>领用数量确认</td>
</Tr>
<logic:iterate id="e" name="officeProductApplyList" indexId="ind">
<tr align="center">
<td class=FormListTableBody><input class="FormCheckBox" type='checkbox' name='idArray' value='<bean:write name="e" property="resourceId"/>'> </td>
<td class=FormListTableBody><input readOnly type="text" name='child_pdtName' value="${e.pdtName }" /> </td>
<td class=FormListTableBody><input readOnly type="text" name='child_pdtType' value="${e.pdtType }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtNum' value="${e.pdtNum }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtUnit' value="${e.pdtUnit }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtPrice' value="${e.pdtPrice }" /> </td>
<td class=FormListTableBody><input size="20" type="text" name='child_memo' value="${e.memo }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_intyNum' /> </td>
</tr>
</logic:iterate>
</table>
<table width="100%" cellpadding="0" cellspacing="0" class="FormListTable" >
<Tr align="center">
<td width="5%" nowrap class=FormListTableHead>
<input class="FormCheckBox" type="CheckBox" onClick="javascript:changeCheck()">
</td>
<td width="20%" nowrap class=FormListTableHead>物品名称</td>
<td width="10%" nowrap class=FormListTableHead>物品类型</td>
<td width="10%" nowrap class=FormListTableHead>领用数量</td>
<td width="10%" nowrap class=FormListTableHead>单位</td>
<td width="15%" nowrap class=FormListTableHead>参考单价</td>
<td width="20%" nowrap class=FormListTableHead>备注</td>
<td width="10%" nowrap class=FormListTableHead>领用数量确认</td>
</Tr>
<logic:iterate id="e" name="officeProductApplyList" indexId="ind">
<tr align="center">
<td class=FormListTableBody><input class="FormCheckBox" type='checkbox' name='idArray' value='<bean:write name="e" property="resourceId"/>'> </td>
<td class=FormListTableBody><input readOnly type="text" name='child_pdtName' value="${e.pdtName }" /> </td>
<td class=FormListTableBody><input readOnly type="text" name='child_pdtType' value="${e.pdtType }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtNum' value="${e.pdtNum }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtUnit' value="${e.pdtUnit }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_pdtPrice' value="${e.pdtPrice }" /> </td>
<td class=FormListTableBody><input size="20" type="text" name='child_memo' value="${e.memo }" /> </td>
<td class=FormListTableBody><input size="10" type="text" name='child_intyNum' /> </td>
</tr>
</logic:iterate>
</table>
解决方案 »
- myeclipse8.6里坑爹的javaEE5
- struts2 该怎么用log4j记录日志呢?
- 求java 正则表式学习资料
- “添加”“修改”“删除”按钮按下没有反应,请高手指点
- 报表如何在网页中显示?
- Struts怎么读取CSV文件并导入数据库
- Hibernate中如何做到先将需要的数据排好序后,按这个顺序分页取出数据?
- 循环中Hibernate 查询效率
- 进来学习!
- EJB问题:jbuilder+weblogic6.1,做了一个session bean,到最后Run时出错如下....(感激涕零)
- 版主或论坛管理员进!give me an answer!------顶贴皆有分!
- JasperPrint问题,XDJM帮忙了。
2.在JSP中IF标签也可以做到。
javascript就可以deleteRow,这种删除,只是临时性的删除,再次请求的时候,删除的列会显示出来