在Struts2框架:
1.首先,action传值给jsp:
Map request=(Map) ActionContext.getContext().get("request");
List list=lendDao.selectLend(dw_gz,year_gz,month_gz,this.getPageNow(),this.getPageSize());
request.put("list", list);
return SUCCESS;2.jsp显示:
<s:iterator value="#request.list" var="lend">
<tr>
<td><s:property value="#lend.dw" /></td>
<td><s:property value="#lend.year_gz" /></td>
<td><s:property value="#lend.month_gz" /></td>
<td><s:property value="#lend.name" /></td>
<td><s:property value="#lend.gz1" /></td>
<td><s:property value="#lend.gz2" /></td>
</tr>
</s:iterator>3.问题:
现想把jsp中list传值给action,如何做?jsp和action中代码如何写?