<% String css="";int i=0; %>
<logic:present name="rleRight">
<logic:iterate id="rle" name="rleRight">
<% if(i%2==1) css="rc"; else css="rw"; i++; %>
<tr class="<%=css%>">
<td><input id="AUTH_A0" name="rleChk" type="CHECKBOX" value="<bean:write name='rle' property='id'/>" /></td>
<td>
<%if(UserPermission.hasPersission(request,UserPermission.Rle_menu,"M")){%>
<a href="javascript:update('<bean:write name="rle" property="id"/>','<bean:write name="rle" property="name"/>')"><bean:write name="rle" property="id"/></a>
<%}else{%>
<bean:write name="rle" property="id"/>
<%}%>
</td>
<td align="left"><bean:write name="rle" property="name"/></td>
</tr>
</logic:iterate>
</logic:present>
解决方案 »
- servlet页面跳转失败,出现空白的servlet页面,这是为什么??
- javaWEB 新手的顾虑
- 高分!FileOutputStream类write成UTF-8编码时出现乱码
- 关于Spring事务配置管理
- wsad 服务器无法启动
- 用struts2+ajax表单提交时,有谁遇到过这个异常?异步提交不需要result
- Myeclipse QuickSetup 有什么作用?
- staic 静态块怎么用啊??
- tomcat5下配置运行servlet,出现找不到网页错误,在线等!!!!
- 请问大家在工作中struts和taglib用的多不?
- SessionBean+CMP开发时遇到的问题,恳请大虾们指点~!
- 求助!!Oralce日期字段获取出错
property的值对应action form中的一个属性名,有自己的get和set方法,该属性的类型好像是一个string数组,详细用法见《struts in action》。实现删除的action类,可以从该action form中取得所选择的一组checkbox所对应的一组值,进而可以执行删除操作。
<tabble>
<logic:iterate id="book" name="books" type="tmsbooks.Book">
<tr align="left">
<td>
<input type="checkbox" name"chkbox" value="2">
</td>
<td>
<bean:write name="book" property="book_no" />
</td>
</tr>
</logic:iterate>
</table>
<a href="Delete.do?chk_box=chkbox">Delete</a>
在jsp对应的action文件中用
String[] chkboxs=request.getParameterValues("chkbox");
取chkbox的值是null.
问:jsp中必须有form和submit才能在action中得到chkbox的值吗?用链接action直接能处理吗?