简体   繁体   English

表达式语言(EL)-它特定于JSP还是通用?

[英]Expression Language (EL) - Is it specific to JSP or general purpose?

I am trying to understand Expression Language (EL) . 我正在尝试理解Expression Language (EL) I referred the wiki for this. 我为此提到了维基

I still have some doubts on this: 我对此仍然有疑问:

  1. What exactly is Expression Language? 表达式语言到底是什么?

  2. Is Expression Language closely related to JSP Or used as an independent technology? 表达式语言是否与JSP紧密相关或用作独立技术?

  3. Is it applicable in web-technologies only or a general purposes technology? 它仅适用于Web技术还是通用技术?

What exactly is Expression Language? 表达式语言到底是什么?

It is a language of expressions for interrogating the state of JavaBeans. 它是用于查询JavaBean状态的表达式语言。

Is Expression Language closely related to JSP Or used as an independent technology? 表达式语言是否与JSP紧密相关或用作独立技术?

EL is used in JSPs and JSF, and a similar expression language is used in Spring. EL在JSP和JSF中使用,而在Spring中使用类似的表达语言。 (There are probably other examples too.) Certainly Spring EL is used in contexts that have nothing to do with the web. (可能还有其他示例。)当然,Spring EL用于与Web无关的上下文中。

Is it applicable in web-technologies only or a general purposes technology? 它仅适用于Web技术还是通用技术?

In theory, EL could be used as part of any framework that uses components that follow the JavaBeans "protocol". 从理论上讲,EL可以用作使用遵循JavaBeans“协议”的组件的任何框架的一部分。 All someone needs to do is adapt the specification and implement it. 某人需要做的就是修改规范并实施它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM