struts2 ognl表达式
来源:互联网 发布:手机免费注册淘宝店铺 编辑:程序博客网 时间:2024/05/21 00:46
一、#操作符
它的作用有三种
1、访问非根对象属性(#session.username)
2、用来过滤和投影集合({1,2,3,4,5}.{?#this>2})
3、用来构造map(#{"ss":"ss","sss":"sss"})
二、%操作符
%用于计算ognl表达式中的值
三、$操作符
1、在国际化资源中使用ognl表达式
2、在struts配置文件中使用ognl表达式
四、调用静态方法
语法结构:
@class@method(attr)
class表示类的完整路径(必须是完整路径),method表示调用的方法,attr表示参数
例如:@Java.lang.Integer@parseInt("123");
0 0
- struts2的OGNL表达式
- struts2的OGNL表达式
- OGNL表达式struts2标签“%,#,$”
- struts2 OGNL表达式
- OGNL表达式struts2标签“%,#,$”
- Struts2中的OGNL表达式
- 再论 Struts2 OGNL表达式
- OGNL表达式struts2标签“%,#,$”
- OGNL表达式struts2标签“%,#,$”
- struts2 ognl 表达式
- OGNL表达式struts2标签“%,#,$”
- Struts2 OGNL表达式介绍
- Struts2 OGNL 表达式
- OGNL表达式struts2标签“%,#,$”
- struts2 OGNL表达式小记
- OGNL表达式struts2标签“%,#,$”
- OGNL表达式struts2标签“%,#,$”
- OGNL表达式struts2标签“%,#,$”
- PhpStorm中的Git设置
- ecshop 会员登录注册业务逻辑实现
- LightOJ - 1400 Employment(婚姻稳定问题)
- iOS与内存管理
- 1028 人口普查
- struts2 ognl表达式
- OC第八天 属性 点语法 KVC
- poj Power Network 1459 (多汇点多源点问题)
- 如何在很多的.o文件中查找到需要的函数,从而定位到源文件?
- Xcode文件后标记
- 1029 旧键盘
- AndroidStudio快速入门一:将Eclipse项目导入AndroidStudio
- HDU 2665
- FMDB 基本操作