JSTL Early Access Beware — API and Tags may/will change support   development   comments to JSR052 EG
JSTL Examples    IntroductionIteratorsConditionalsEL Support MiscEcmaScriptImport

EcmaScript Expression Language Examples

In order to use EcmaScript, make sure to set the context parameter to the EcmaScript expression language in your web.xml file as follows:

    <context-param>
        <param-name>javax.servlet.jsp.jstl.temp.ExpressionEvaluatorClass</param-name>
        <param-value>org.apache.taglibs.standard.lang.javascript.JavascriptExpressionEvaluator</param-value>
    </context-param>

Arithmetic Operators  

Arithmetic Operators perform various operations on either numeric or string operands.

Comparison Operators  

Comparison Operators compare values for equality and identity.

String Operators  

Comparison Operators produce special effects when used with Strings.

String Support  

The EcmaScript String Object type has many useful methods for operating on string values.

Logical Operators  

Logical Operators are used to perform boolean algebra.

Bitwise Operators  

Bitwise Operators perform boolean algebra on individual bits or are used to shift bits.

Assignment Operators  

Assignment Operators are shortcuts for combining assignment with another operation.

Conditional Operator  

Conditional Operator is a shortcut for an if/else statement.

Array Access  

Individual elements of an array can be accessed using the [] notation.

Property Access  

Elements of an object can be accessed using the . notation.

Map Access  

The key and value of a Map.Entry object can be accessed directly.

Function Call  

Functions can be invoked using the () operator.

JSTL Early Access Beware — API and Tags may/will change support    development   comments to JSR052 EG