My application is running on Tomcat 9. I want to use servlet 4.0 and taglibs in my jsp application.
Header of my jsp is :
Error is : Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
To solve the issue I have added JSTL dependency but the servlet version does not match to 4.0.
The following dependency belongs to servlet 2.4.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
The following dependency belongs to servlet 2.5.
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>javax.servlet.jsp.jstl</artifactId>
<version>1.2.5</version>
</dependency>