OGNL中的“#”
来源:互联网 发布:k线矩阵 pdf下载 编辑:程序博客网 时间:2024/05/04 18:41
一、访问OGNL上下文和Action上下文,#相当于ActionContext.getContext();下表有几个ActionContext中有用的属性:
parameters 包含当前HTTP请求参数的Map #parameters.id[0]作用相当于request.getParameter("id")
request 包含当前HttpServletRequest的属性(attribute)的Map #request.userName相当于request.getAttribut("userName")
session 包含当前HttpSession的属性(attribute)的Map #session.userName相当于session.getAttribute("userName")
application 包含当前应用的ServletContext的属性(attribute)的Map #application.userName相当于application.getAttribute("userName")
attr 用于按request > session > application顺序访问其属性(attribute) #attr.userName相当于按顺序在以上三个范围(scope)内读取userName属性,直到找到为止
二、用于过滤和投影(projecting)集合,如books.{?#this.price<100};
三、构造Map,如#{'foo1':'bar1', 'foo2':'bar2'}。
- OGNL中的“#”
- OGNL中的$,#,%
- OGNL中的#%$
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- Struts 2中的OGNL
- fck fckeditor 重写 映射 HTML 无效 失败 解决办法
- 关于S3C2440从NAND Flash启动的问题
- Oracle临时表的几种用法及意义
- 智睿学校网站管理系统VER1.5.7破解版
- 水波
- OGNL中的“#”
- 补泪滴
- 批次KILL指定服务器连接的语句
- 软件升級后字键白屏分析
- android应用程序签名
- linux rhel 5 DNS 详解 4
- 转:评论:程序员,不止干到35岁
- org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted和java.util.NoSuchElementException: Timeout wa
- Activate PDP Context Reject SM Cause