struts表达式
来源:互联网 发布:php软件是什么 编辑:程序博客网 时间:2024/06/12 22:36
用struts2标签和ognl表达式来取得request\parameter\session\application中的值,以及action中的成员变量的值。
request:<s:property value=" # request.userName "/>
parameter:<s:property value=" #parameters.id[0] "/>
session:<s:property value=" # session.userName "/>
application:<s:property value=" # application.userName "/>
action:<s:property value=" # attr.userName "/>
取得list类型变量及map类型变量中的值。
<s:set name="list" value="{'a','b','c'}"></s:set>
<s:property value="#list[0]"/>
<s:iterator value="list" status="st">
<s:property value="#list[#st.index]"/>
</s:iterator>
<s:set name="map" value="#{1:'a',2:'b',3:'c'}"></s:set>
<s:property value="#map[3]"/>
<s:iterator value="map">
<s:property value="key"/>-----<s:property value="value"/>
</s:iterator>
- struts表达式
- Struts用到的表达式
- 注解+Struts+EL表达式
- Struts的OGNL表达式
- struts中OGNL表达式
- struts专题 OGNL 表达式
- Struts 2表达式语言
- Struts的OGNL表达式
- struts--ognl表达式
- struts中的ognl表达式
- struts标签,el表达式,ognl表达式
- struts 2专用表达式(10)
- Struts 2的OGNL表达式
- Struts 2中的表达式语言
- Struts中的OGNL表达式语言
- Struts OGNL 表达式的用法
- Struts 2中OGNL表达式
- EL表达式、struts标签相关
- could not fetch initial value for increment generator
- Leonbao:MapKit学习笔记
- linux下管理ssh的脚本程序
- JVM博客文章目录一览
- 记录:protobuf在网游中的用法
- struts表达式
- PWM Demo
- 黑马程序员-java中this的使用
- 多维数组和指针(一)
- 读书笔记c专家第5章对链接的思考
- 多维数组和指针(二)
- Windows Mobile 6 Professional SDK
- ADC Demo
- vc 如何判断2个矩形是否有交集