Unified Expression Language

Unified Expression Language

The Java Unified Expression Language is a special purpose programming language mostly used in Java web applications for embedding expressions into web pages.The Java specification writers and expert groups of the Java web-tier technologies have worked on a unified expression language which is now part of the JSP 2.1 specification (JSR-245). While the expression language is part of the JSP specification, it does not depend on the JSP specification and therefore it is available for a variety of technologies.

History

The expression language started out as part of the JavaServer Pages Standard Tag Library (JSTL) and was originally called SPEL (Simplest Possible Expression Language). It offered a simple way to access data objects. Over the years, the expression language has evolved to include more advanced functionality and it was included in the JSP 2.0 specification, because of the popularity and success in the community.

During the development of JSP 2.0, the JavaServer Faces technology was released which also needed an expression language, but the expression language defined in the JSP 2.0 specification didn't satisfy all the needs for development with JSF technology. The most obvious limitation is that its expressions are evaluated immediately. And also, the JSF components need a way to invoke methods on server-side objects. A more powerful language was created with the following new features:
*Deferred expressions, which are not immediately evaluated
*Expressions that can set as well as get data
*Method expressions, which can invoke methods

The new expression language worked well for the purposes of JSF. But developers had problems when integrating the JSP EL with the JSF EL because of conflicts. Because of these incompatibilities, the unified expression language initiative was started to unify these expression languages. As of JSP 2.1, the expression languages of JSP 2.0 and JSF 1.1 have been merged into a single unified expression language (EL 2.1).

Features

The new unified EL is a union of the JSP and JSF expression languages. In addition to the features already available in the JSP EL, the unified EL has the following features:
*Deferred evaluation
*Support for expressions that can set values and expressions that can invoke methods
*A pluggable API for resolving expressions

Implementations

JUEL is an open-source implementation of the Unified Expression Language. It is considered stable and feature complete and is licensed under the Apache License 2.0. JUEL is also suitable for use in non-JSP applications.

External links

* [http://sherekan.com.ar/blog/2008/07/10/jsp-el-expression-language/ Introducción a EL] (en español)
* [http://www.jcp.org/en/jsr/detail?id=245 JSR 245: JavaServer Pages 2.1]
* [http://java.sun.com/products/jsp/reference/techart/unifiedEL.html Unified Expression Language] (article at Sun Developer Network (SDN)
* [http://today.java.net/pub/a/today/2006/03/07/unified-jsp-jsf-expression-language.html Unified Expression Language for JSP and JSF] (article at java.net)
* [http://juel.sourceforge.net JUEL] is an implementation of the Unified Expression Language (EL), specified as part of the JSP 2.1 standard (JSR-245).


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Language internaute — Jargon informatique Le jargon informatique est un pseudo langage propre aux représentants des professions gravitant autour de l informatique. Discutant essentiellement par messages courts, ces personnes utilisent en excès des abréviations,… …   Wikipédia en Français

  • language — /lang gwij/, n. 1. a body of words and the systems for their use common to a people who are of the same community or nation, the same geographical area, or the same cultural tradition: the two languages of Belgium; a Bantu language; the French… …   Universalium

  • Object Constraint Language — The Object Constraint Language (OCL) is a declarative language for describing rules that apply to Unified Modeling Language (UML) models developed at IBM and now part of the UML standard. Initially, OCL was only a formal specification language… …   Wikipedia

  • Description Definition Language — DDL (Description Definition Language) is part of the MPEG 7 standard. It gives an important set of tools for the users to create their own Description Schemes (DSs) and Descriptors (Ds). DDL defines the syntax rules to define, combine, extend and …   Wikipedia

  • Domain-specific language — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concurrent computing …   Wikipedia

  • Visual programming language — A Visual programming language (VPL) is any programming language that lets users specify programs by manipulating program elements graphically rather than by specifying them textually. A VPL allows programming with visual expressions, spatial… …   Wikipedia

  • Object Constraint Language — OCL (Object Constraint Language) est un langage informatique d expression des contraintes utilisé par UML. C est une contribution d IBM à UML 1.1. Ce langage formel est volontairement simple d accès et représente un juste milieu entre langage… …   Wikipédia en Français

  • Belarusian language — language name=Belarusian/Belorussian nativename=беларуская мова BGN/PCGN: byelaruskaya mova familycolor=Indo European states=Belarus, Poland, in 14 other countries speakers= 4 to 7 million rank=74 fam2=Balto Slavic fam3=Slavic fam4=East Slavic… …   Wikipedia

  • C (programming language) — C The C Programming Language[1] (aka K R ) is the seminal book on C …   Wikipedia

  • C Sharp (programming language) — The correct title of this article is C# (programming language). The substitution or omission of the # sign is because of technical restrictions. C# Paradigm(s) multi paradigm: structured, imperative …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”