简体   繁体   中英

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

I am trying to understand 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?

  3. Is it applicable in web-technologies only or a general purposes technology?

What exactly is Expression Language?

It is a language of expressions for interrogating the state of JavaBeans.

Is Expression Language closely related to JSP Or used as an independent technology?

EL is used in JSPs and JSF, and a similar expression language is used in Spring. (There are probably other examples too.) Certainly Spring EL is used in contexts that have nothing to do with the web.

Is it applicable in web-technologies only or a general purposes technology?

In theory, EL could be used as part of any framework that uses components that follow the JavaBeans "protocol". All someone needs to do is adapt the specification and implement it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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