1、
HttpServletRequest request=ServletActionContext.getRequest();
........
request.setAttribute("list", list);
2
#request.list
<!-- value代表一个集合List -->
<s:iterator value="#request.list">
<tr>
<!-- 必须加“#”,不然取的是column.column -->
<!-- 必须加“#”,不然取的是column.column -->
<td align="center"><s:property value="v_id" /></td>
</td>
<td align="center"><s:property value="v_name" /></td>
</td>
</tr>
</s:iterator>
Done!
strust2之jsp调用action的变量,布布扣,bubuko.com
时间: 2024-10-14 19:01:33