I am trying to use jstl in my java spring mvc project.
here is the dependency
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
I have added the following line to use jstl in my jsp
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
but when i am trying to access that page it is giving me following error.
class org.apache.taglibs.standard.tlv.JstlCoreTLV cannot be cast to class jakarta.servlet.jsp.tagext.TagLibraryValidator
does anyone has any idea what could be wrong?