14.07.2013 Views

Contents - Cultural View

Contents - Cultural View

Contents - Cultural View

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Java Posse 298<br />

External links<br />

• The Java Posse web site [3] .<br />

References<br />

[1] Chris Adamson, "The Java Podcasters" (http:/ / www. onjava. com/ pub/ a/ onjava/ 2006/ 01/ 25/ java-podcasters. html), 25 January 2006<br />

[2] Chris Adamson, Editor's Daily Blog (http:/ / weblogs. java. net/ blog/ editors/ archives/ 2007/ 01/ hold_on. html), java.net, 25 January 2007<br />

[3] http:/ / javaposse. com/<br />

Unified Expression Language<br />

The Java Unified Expression Language is a special purpose programming language mostly used in Java web<br />

applications for embedding expressions into web pages. The Java specification writers and expert groups of the Java<br />

web-tier technologies have worked on a unified expression language which is now part of the JSP 2.1 specification<br />

(JSR-245). While the expression language is part of the JSP specification, it does not depend on the JSP specification<br />

and therefore it is available for a variety of technologies.<br />

History<br />

The expression language started out as part of the JavaServer Pages Standard Tag Library (JSTL) and was originally<br />

called SPEL (Simplest Possible Expression Language). It offered a simple way to access data objects. Over the<br />

years, the expression language has evolved to include more advanced functionality and it was included in the JSP 2.0<br />

specification, because of the popularity and success in the community.<br />

During the development of JSP 2.0, the JavaServer Faces technology was released which also needed an expression<br />

language, but the expression language defined in the JSP 2.0 specification didn't satisfy all the needs for<br />

development with JSF technology. The most obvious limitation is that its expressions are evaluated immediately.<br />

And also, the JSF components need a way to invoke methods on server-side objects. A more powerful language was<br />

created with the following new features:<br />

• Deferred expressions, which are not immediately evaluated<br />

• Expressions that can set as well as get data<br />

• Method expressions, which can invoke methods<br />

The new expression language worked well for the purposes of JSF. But developers had problems when integrating<br />

the JSP EL with the JSF EL because of conflicts. Because of these incompatibilities, the unified expression language<br />

initiative was started to unify these expression languages. As of JSP 2.1, the expression languages of JSP 2.0 and JSF<br />

1.1 have been merged into a single unified expression language (EL 2.1).<br />

Features<br />

The new unified EL is a union of the JSP and JSF expression languages. In addition to the features already available<br />

in the JSP EL, the unified EL has the following features:<br />

• Deferred evaluation<br />

• Support for expressions that can set values and expressions that can invoke methods<br />

• A pluggable API for resolving expressions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!