12.7. Using the Expression Language

The set, expr, and declare tags let you use shorthand notation to define attributes, evaluate expressions, and declare scripting variables. The first two tags are available only in the jx library; declare is technically available in either library but is primarily used with jx. Details and examples are provided in the following subsections, but here is a quick summary.

  • set. This tag defines a PageContext attribute. Use var to specify the name of the attribute; use value to specify its value. When using the value attribute, recall that in the jx library $attribute .beanProperty means that the system should call the getBeanProperty method of the object referenced by the attribute named attribute . You can also ...

Get More Servlets and JavaServer Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.