既然迭代输出了那肯定有办法拿到id了,试试下面这个思路
<c:forEach item="${list}" var="student">
${student.id}
<input type="button" onclick="aaa.do?id=${student.id}">
</c:forEach>
<c:forEach item="${list}" var="student">
${student.id}
<input type="button" onclick="aaa.do?id=${student.id}">
</c:forEach>
解决方案 »
- 求解释?struts和servlet的区别,越详细越好?
- 大家来看看s:iterator 的问题
- Oracle大哥我错了!我真的搞不懂你了!
- JAVA或者JavaScript怎么获得客户端硬盘序列号?
- 特定JMS消息实现特定功能
- javascript : history.back() , 显示网页已经过期。
- java中的程序模块又称为package(包)和 什么 ???
- 将dao封装进ejb后频繁连接的问题
- 求助:Servlet不能运行,怪?
- {200分}(急等)通过jsp程序调用另一台机子上的ejb,编译通过运行时出错,程序、错误提示如下:
- jdk1.6 + MyEclipse6 + Tomcat6 启动失败
- Servlet action is not available ,实在整不出来了,无奈了……,只能指望大家了,叩谢叩谢!!!
EL表达式和C标签太好用了。呵呵。