struts2 ognl 复杂应用

1获取uri :

<s:property value="#request.get('javax.servlet.forward.request_uri')">

2 Iterator内嵌textfield标签

<s:iterator value="mms" id="mm" status="st">
<tr>
<td>年龄:<s:textfield name="%{'mms['+#st.index+'].age'}" theme="simple"/> </td>
<td>名字:<s:textfield name="%{'mms['+#st.index+'].name'}" theme="simple" /></td>
<td>等级:<s:textfield name="%{'mms['+#st.index+'].level'}" theme="simple" /></td>
</tr>
</s:iterator> eld标签

posted @ 2013-04-10 19:20  寂静沙滩  阅读(184)  评论(0编辑  收藏  举报