JSP EL Operator Precedence.

JSP El Operator precedence

Each operator has a precedent that determines the order of evaluation.

For all the operators found in the menus above the precedence is:
  1. [] (square brackets)
  2. () (parenthesis)
  3. not ! empty - (unary)
  4. * / div mod %
  5. + - (binary)
  6. < > <= >= lt gt le ge
  7. == != eq ne
  8. && and
  9. || or
Example:
${5 * 2 ge 4 } is equivalent to ${(5 * 2)  ge 4 } and evaluates to true 
${1 + 1 == 2 } is equivalent to ${(1 + 1) == 2 } and evaluates to true
${"abc".concat("d") == "abcd"} evaluates to true
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.