/* ====================================================================
* The Tmax soft License, Version 1.1
*
* Copyright (c) 1997-2004 The Tmax software.
* All rights reserved.
* html code omitted for readability.
/* ====================================================================
/*
## basicel.jsp
*/
JSP 2.0 Basic EL
JSP 2.0 Basic EL
arithmetic
EL Expression |
Result |
\${3} |
${3} |
\${5 + 2} |
${5 + 2} |
\${1.5E4 + 1.4} |
${1.5E4 + 1.4} |
\${-4 - 2} |
${-4 - 2} |
\${7 * 2} |
${7 * 2} |
\${6/8} |
${6/8} |
\${6 div 8} |
${6 div 8} |
\${3/0} |
${3/0} |
\${10%3} |
${10%3} |
\${10 mod 3} |
${10 mod 3} |
\${(1==2) ? 3 : 4} |
${(1==2) ? 3 : 4} |
Numeric
EL Expression |
Result |
\${1 < 2} |
${1 < 2} |
\${1 lt 2} |
${1 lt 2} |
\${1 > (4/3)} |
${1 > (4/3)} |
\${1 > (4/3)} |
${1 > (4/3)} |
\${4.2 >= 3} |
${4.2 >= 3} |
\${4.2 ge 3} |
${4.2 ge 3} |
\${4 <= 3} |
${4 <= 3} |
\${4 le 3} |
${4 le 3} |
\${10.0 == 10} |
${10.0 == 10} |
\${10.0 eq 10} |
${10.0 eq 10} |
\${(10*10) != 100} |
${(10*10) != 100} |
\${(10*10) ne 100} |
${(10*10) ne 100} |
Alphabetic
EL Expression |
Result |
\${'a' < 'd'} |
${'a' < 'd'} |
\${'foo' > 'zoo'} |
${'foo' > 'zoo'} |
\${'4' > 3} |
${'4' > 3} |