JSTL 、 OGNL 与 EL

JSTL: JSP Standard Tag Library

OGNL:Object-Graph Navigation Language

EL:Expression Language

action 中

import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionContext;
ActionContext context = ActionContext.getContext(); 

ognl 中的 # 相当于ActionContext.getContext();

ognl 中的 %{  }  用于计算字符串表达式

http://blog.sina.com.cn/s/blog_644eb9350100pb56.html

property <-> Action        (extends ActionSupport)

set <-> ActionContext

push <-> ValueStack

原文地址:https://www.cnblogs.com/zno2/p/4538255.html