Using JSPs in web applications need a few changes (details below)
- Change 01: Use
jakarta.servlet.jsp.jstl
instead ofglassfish-jstl
- Change 02: Use
jakarta.tags.core
instead ofhttp://java.sun.com/jsp/jstl/core
as taglib - Change 03: Run
mvn clean install
to update libraries
Spring Boot 3.2.x and greater
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jakarta.servlet.jsp.jstl</artifactId>
</dependency>
jakarta.servlet.jsp.jstl
replaces glassfish-jstl
(recommended for Spring Boot <= 3.1.x)
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>glassfish-jstl</artifactId>
</dependency>
Use
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
Use
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
And then execute the mvn clean install
command
Thank you!
in28minutes team (Maahi and Ranga)