在jsp页面在通过struts2标签取值
<s:property value="#parameters.value"/>
此时取得的值是通过表单提交过去的,假设表单有此字段:<input type="text" name="money" value="12"/>
到action中有以下动作:
money=15;
request.setAttribute("money","16");
则通过<s:property value="#parameters.value"/>依然是12,也就是说在action中操作money字段,并不影响其取值,它只是取提交表单时的数据,并不做修改