Struts 2中的动作上下文是什么 [英] What is action context in Struts 2

查看:123
本文介绍了Struts 2中的动作上下文是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不了解这位作者:上下文,默认对象或根对象的属性. ..基于上下文

I don't understand this author: context, properties of the default or root object. ..based on a context

我只能阅读本教程的这一部分:

I'm stuck at reading this portion of the tutorial:

http://www.tutorialspoint.com/struts_2/struts_value_stack_ognl.htm

"OGNL与JSP表达式语言非常相似.OGNL是 基于在根目录中包含根对象或默认对象的想法 语境.默认对象或根对象的属性可以是 使用标记符号(即英镑符号)引用.作为 前面提到,OGNL是基于上下文的,Struts构建了一个 与OGNL一起使用的ActionContext映射. ActionContext映射包括 以下:..."

"The OGNL is very similar to the JSP Expression Language. OGNL is based on the idea of having a root or default object within the context. The properties of the default or root object can be referenced using the markup notation, which is the pound symbol. As mentioned earlier, OGNL is based on a context and Struts builds an ActionContext map for use with OGNL. The ActionContext map consists of the following:..."

作者写作时是什么意思

在上下文中具有根对象或默认对象的想法."

"idea of having a root or default object within the context."

"OGNL基于上下文"

"OGNL is based on a context"

..这是什么上下文的东西?

..what is this context thing??

这非常令人沮丧.

推荐答案

按以下顺序回答您的问题:

Answering your questions in the following order:

OGNL具有上下文或上下文映射,可以在其上进行操作.框架将其设置为操作上下文.

OGNL has a context or context map on which it operates. Framework sets it to action context.

root是上下文映射中的默认对象,并且其中包含的所有对象都可以不带#进行引用.框架将此对象设置为值堆栈.

A root is a default object in the context map and all objects it contains could be referenced without #. Framework sets this object to value stack.

参考:

  • OGNL
  • OGNL Basics

这篇关于Struts 2中的动作上下文是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆