SPRING CONCEPTS

JSTL · Jakarta Standard Tag Library

Spring Concepts / JSTL · Jakarta Standard Tag Library

JSTL supplies reusable view tags for common JSP tasks.

Understand the idea

The core library includes loops, conditions, escaped output, and URL construction. The Jakarta core taglib URI is jakarta.tags.core. This WAR packages both the API and implementation because Tomcat does not bundle JSTL.

A concrete example

<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<c:out value="${todo.title}"/>

In the application

The JSP todo views use c:forEach, c:if, c:choose, c:url, c:param, and c:out.

Use libraries and imports appropriate to the Jakarta/Tomcat version instead of combining old javax examples with this project.

Related concepts

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