OGNL stack value 值栈(主要参考官方手册)
来源:互联网 发布:破解密码的软件 编辑:程序博客网 时间:2024/06/05 11:06
该框架使用标准的命名上下文来计算OGNL表达式。最顶层的对象被称为上下文context,由于它是一个Map对象,因此也被称为是context map。OGNL中有一个根对象(或者成为默认对象)root。在OGNL中使用根对象的属性时不需要加#。而访问非根对象时,需要标明#。OGNL会默认从根对象往下一层一层的查找对象(属性),如果看到开头有#,则说明希望OGNL从其他与跟对象并行的对象中查找。
The framework sets the OGNL context to be our ActionContext, and the value stack to be the OGNL root object. (The value stack is a set of several objects, but to OGNL it appears to be a single object.) Along with the value stack, the framework places other objects in the ActionContext, including Maps representing the application, session, and request contexts. These objects coexist in the ActionContext, alongside the value stack (our OGNL root).
struts2将ActionContext设置为设置为OGNL的context,并将值栈value stack设置为OGNL的根对象。(值栈中保存了多个对象,但是对于OGNL来说值栈就是一个对象。)
除了值栈,OGNL还将其他一些对象放到了ActionContext下,包括application, session, request and attr。
这些对象鱼值栈对象并列。
The Action instance is always pushed onto the value stack. Because the Action is on the stack, and the stack is the OGNL root, references to Action properties can omit the # marker. But, to access other objects in the ActionContext, we must use the # notation so OGNL knows not to look in the root object, but for some other object in the ActionContext.
Action实例会被压入值栈中。由于Action实例在值栈中,而值栈是OGNL的根对象,因此OGNL访问Action中的成员属性不用加#。
- OGNL stack value 值栈(主要参考官方手册)
- Struts2 值栈(Value Stack)与OGNL
- Struts2 Value Stack/OGNL
- Struts2学习记录-Value Stack(值栈)和OGNL表达式
- sphinx调用API参考(官方手册)
- sphinx调用API参考(官方手册)
- struts-——OGNL和VALUE STACK
- struts Value Stack 值栈
- Struts2学习笔记(七):OGNL之<s:property>标签访问值栈(value Stack)对象属性
- Struts2 OGNL中value stack contents 和 stack contex解释简化版
- Struts2学习笔记(六):值栈(value Stack)浅析
- struts2之值栈(value stack)
- struts2之值栈(value stack)
- Struts2之值栈(value stack)
- DSOframer 的主要事件参考(一)
- DSOframer 的主要事件参考(二)
- Activity详解(主要参考官网)
- #include<stack> 主要用法
- 设计模式--6大原则
- 【消息队列MQ】各类MQ比较
- 使用Git、Git GUI和TortoiseGit
- Linux下简单限制网卡的带宽
- 如何进行数据库,比如ORACLE,SQL SERVER的逆向工程,将数据库导入到PowerDesigner中
- OGNL stack value 值栈(主要参考官方手册)
- strcpy函数和mencpy函数的解释和区别分析
- 设计模式C++描述----09.桥接(Bridge)模式
- 每个人都可以听到独一无二的音乐,音乐众包平台Audiodraft帮音乐人找到销售的出口
- Rails 3.2.13运行rails server后出错!提示:Usage:rails new APP_PATH [options] Options:......
- sql(join中on与where区别)
- 数据持久化之sharedpreference的使用
- eclipse 工具中关联 tomcat 源代码
- C# 数据库操作通用代码段