- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ongl简介(ongl简介)
ongl简介(ongl简介)
ONGL profile (2009-08-10 21:40:56)
Reprint labels: onglstrutsjava classification: learning learning.
OGNL is the abbreviation of Object Graph Navigation Language (object graph Navigation Language), it is a powerful expression language, let you through a simple attribute consistent expression syntax to read and set the value of a Java object, method calls, structure graph traversal of the whole object, realize the field type conversion functions.
Why use OGNL?
Compared with other expressions, OGNL more powerful, it offers many advanced and essential characteristics, such as strong type conversion function, static or instance method execution, cross set projection, and dynamic lambda expression etc..
OGNL Foundation
OGNL expressions are calculated around the OGNL context, and the OGNL context is actually a Map object that is represented by the ognl.OgnlContext class (which implements the java.util.Map interface). The OGNL context can contain one or more JavaBean objects, where one of these objects is special, which is the root (root) object of the context. If you do not specify which object to use in the context when writing an expression, then the root object is assumed to be the object on which the expression is based.
In the context of OGNL, there can be only one root object, if you access the root object, so when writing expressions, attributes can be written directly to the object; otherwise, you need to use the prefix #key, for example, the expression #.
OGNL expression
The basic unit of the OGNL expression is the navigation chain, often referred to as the chain (chain). The simplest chain consists of the following parts:
1, property names such as name and ;
2, method call, such as manager.hashCode (), returns the hash code of the manager object;
3, array index: for example, emals[0], returns the first mail address in the current objects mailing list.
All OGNL expressions are computed in the context of the current object. A chain simply uses the r
您可能关注的文档
- 2008年高考生物一轮复习资料 第17讲 动物细胞融合与单克隆抗体_百度...(The college entrance examination in 2008 a review about biological data of seventeenth animal cell fusion and monoclonal antibody _ Baidu...).doc
- 2008年高考生物一轮复习资料 第17讲 动物细胞融合与单克隆抗体(In 2008, the college entrance examination was reviewed with seventeenth rounds of animal cell fusion and monoclonal antibodies).doc
- 2009-2010学年度上学期期末考试高二级语文试题(2009-2010 school year, the final exam, sophomore language examination questions).doc
- 2009-2010学年秋冬学年排球理论练习题--e(Volleyball theory exercises for the 2009-2010 winter academic year --e).doc
- 2009-2010学年秋冬学期排球理论练习题--b(Volleyball practice in --b winter and autumn academic year 2009-2010).doc
- 2009国考面试题目汇总及分析(Summary and analysis of interview questions for 2009 countries).doc
- 2009年10月自考语言学概论试题(An introduction to Linguistics in October 2009).doc
- 2009年上海交通大学844金融学考研试题(2009 844 Graduate School of finance, Shanghai Jiao Tong University).doc
- 2009年公共管理学基础(Foundations of public administration in 2009).doc
- 2009年复试真题(2009 interview Zhenti).doc
- openbsd下vi编辑器的用法(The use of the VI Editor under OpenBSD).doc
- none和no one的区别(The difference between none and no one).doc
- opera指令详解(opera指令详解).doc
- net use命令大全(使用命令大全).doc
- note-taking (tem4)(笔记(TEM4)).doc
- oracle--单实例-从32位-迁移到-64位-方法(三)---使用导出导入--说明(Oracle-- single instance - migrate from 32 bit to -64 bit - Method (three) - use export import - explain).doc
- oracle to_char 日期转换字符串(Oracle to_char日期转换字符串).doc
- oracle proc文库(oracle proc文库).doc
- oracle版本区别(Oracle version difference).doc
- oracle的普通表转换成分区表(The general table of Oracle is converted into partition tables).doc
文档评论(0)