<%@ page contentType="text/html;charset=UTF-8" language="java" %> EL Arithmetic and Logical Demo

Arithmetic Operations

Addition: ${3 + 4}

Subtraction: ${10 - 3}

Multiplication: ${5 * 6}

Division: ${10 div 4}

Modulus: ${10 mod 3}

Logical Operations

True AND False: ${true and false}

NOT False: ${not false}

Conditional

Larger of 5 and 9: ${5 > 9 ? 5 : 9}

Comparison

Is 10 equal to 10? ${10 == 10}

Is 5 greater than 3? ${5 > 3}