首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

怎么将查出的数据的id做成连接,点击后将值传给action

2012-03-31 
如何将查出的数据的id做成连接,点击后将值传给actionc:forEach items${list } varemployeetrtd

如何将查出的数据的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的路径问题。

热点排行