当前位置: 代码迷 >> J2EE >> struts2 表单提交有关问题
  详细解决方案

struts2 表单提交有关问题

热度:155   发布时间:2016-04-22 01:38:39.0
struts2 表单提交问题
<s:form name="ctl00" method="post" action="update" id="f"
theme="simple">

我想在action="update?id=${pro.id}",为什么不对呢,应该怎么写?

------解决方案--------------------
将这个${pro.id}参数写成隐藏域 放在form中,一起提交过去

<input type=hidden name="pro_id" value=${pro.id}> 

  相关解决方案