SPRING CONCEPTS

EL · Expression Language

Spring Concepts / EL · Expression Language

EL reads values and properties for server-side view rendering.

Understand the idea

An expression such as ${todo.title} resolves the current object’s title property through its public getter. Scopes can be explicit, such as sessionScope.listVisits. EL values come from data prepared for the view, not automatically from arbitrary request parameters.

A concrete example

${todo.title} → todo.getTitle()
${sessionScope.listVisits} → session attribute

In the application

TodoServlet prepares request attributes; JSP expressions use them for form fields and task rendering.

An EL expression is not automatically HTML escaping. Use c:out for user-supplied text.

Related concepts

Read the official documentation ↗
Java 21 · Spring Boot 4.1.1 · Edupoly