Table of Contents
This section outlines the details the elements of OGNL's expressions.
OGNL has the following kinds of constants:
String literals, as in Java (with the addition of single quotes): delimited by single- or double-quotes, with the full set of character escapes.
Character literals, also as in Java: delimited by single-quotes, also with the full set of escapes.
Numeric literals, with a few more kinds than Java. In addition to Java's ints, longs, floats and doubles, OGNL lets you specify BigDecimals with a "b" or "B" suffix, and BigIntegers with an "h" or "H" suffix (think "huge"---we chose "h" for BigIntegers because it does not interfere with hexadecimal digits).
Boolean (true
and false
) literals.
The null
literal.