日期:2014-05-19  浏览次数:20577 次

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}>