Struts2 OGNL 自己的一些笔记
来源:互联网 发布:mac 强制关掉程序 编辑:程序博客网 时间:2024/06/03 09:59
ValueStack 值栈 是一个跟对象 可以直接访问 (是一个List)
Context 是一个Map 访问的时候 需要加 # 号
所以 # 相当于 ActionContext.getContext()
#session.msg ==> ActionContext.getContext().getSession().getAttribute("msg");
% 号在标志的属性为字符串类型时,计算OGNL表达式的值
<s:set name="foobar" value="#{'foo1':'bar1', 'foo2':'bar2'}" />
<p>The value of key "foo1" is <s:property value="#foobar['foo1']" /></p>
<p>不使用%:<s:url value="#foobar['foo1']" /></p>
<p>使用%:<s:url value="%{#foobar['foo1']}" /></p>
运行界面如下所示。
he value of key "foo1" is bar1
不使用%:#foobar['foo1']
使用%:bar1
在Struts 2框架的配置文件中引用OGNL表达式 使用 $
0 0
- Struts2 OGNL 自己的一些笔记
- struts2学习笔记----OGNL
- struts2的一些笔记
- Struts2的OGNL
- Struts2 OGNL的增强
- struts2的OGNL表达式
- struts2的OGNL表达式
- 關於Struts2的OGNL
- 關於Struts2的OGNL
- Struts2的OGNL
- struts2 OGNL # % $的使用
- struts2的ognl学习
- Struts2标签的OGNL
- struts2的OGNL
- Struts2的OGNL
- struts2 OGNL $ % *的用法
- Struts2的OGNL
- OGNL和struts2的# %{}
- 使用tcgetattr函数与tcsetattr函数控制终端
- sql查询模板
- Android开发之四大组件——Service
- 汇编入门学习笔记 (十二)—— int指令、端口
- POJ 2796Feel Good
- Struts2 OGNL 自己的一些笔记
- 真正的成功是熬出来的
- Session && Cookie
- 不要做一个浮躁的程序员
- 依赖倒转原则
- eclipse+selenium环境搭建
- atexit函数
- 循环-01. 求整数段和(15)
- 普通用户执行sudo报hadoop is not in the sudoers file. This incident will be reported.解决方法