Expression Language (EL) in JSP

What are the Expression Language (EL) in JSP?

Explanation

Simpler form for JSP Expressions came with JSTL 1.0, in the form of Expression Language. EL is used to set action attribute values from different sources at runtime. JSP Expression Language is also used without parameters but as actions directly in a webpage.

JSP EL always starts with a "$" followed by a "{" and ends with a "}". The expression is specified inside the brackets. A set of implicit variables provide access to the requested data.

Example :


${2+3+4}

JSP EL supports literal numbers, the boolean value "true,false", "null", the strings enclosed in single and double quotes.

Ask Questions

Ask Question