读书人

怎么将查出的数据的id做成连接点击后

发布时间: 2012-03-31 13:13:26 作者: rapoo

如何将查出的数据的id做成连接,点击后将值传给action
<c:forEach items="${list }" var="employee">
<tr>
<td height="25" align="center" width="120" class="b1_text_12_n">
<input id="userCode" value="${employee.userCode}" type="hidden">
<a href="../updateEmployee.action?userCode='${employee.userCode}'" >
${employee.userCode}
</a>
</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.userName}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.status}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.sex}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.company.orgName}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.role.roleName}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.mobile}</td>
<td height="25" align="center" width="120" class="b1_text_12_n">${employee.ocupation}</td>
</tr>
</c:forEach>

[解决办法]
<a href="../updateEmployee.action?userCode=${employee.userCode}" >
不要那个单引号。
[解决办法]
../
如果连action都进不了那你看是不是这个引起的、
[解决办法]
action的路径问题。

读书人网 >Java Web开发

热点推荐