O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.12 EXPRESSION LANGUAGE (EL)

JSP EL (Expression Language) was added to JSP 2.0 Specifications makes it easier to get values of variables, as opposed to complex scripting which would have been otherwise necessary. An example of EL is shown below, which gets the property of the emp object.

${emp.name}

EL looks like Java but they have lot of differences. In fact, EL can be used to access Java objects without little knowledge of Java. Its predominant usage is through implicit objects that are available. They are mentioned as follows:

  • pageContext
  • Standard Scopes
    • pageScope
    • requestScope
    • sessionScope
    • applicationScope
  • param
  • paramvalues
  • header
  • headerValues
  • cookie
  • initParam

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required