I have application and I want to use jstl tag lib
.
I have two jars JSTL.jar
and standard.jar
. I put both in my WEB-INF/lib>
You made several mistakes:
web.xml
. This is a myth.web.xml
for Tomcat 7.Remove them all. Remove all
from web.xml
. Remove the both JARs from /WEB-INF/lib
. Then follow the following steps:
/WEB-INF/lib
.Fix your web.xml
to be Servlet 3.0 compatible.
Use the documented taglib declaration:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
I have a vague suspicion that you're using Roseindia.net as a Java EE resource. Your invalid approach is also mentioned in there. You should not do that. You should put that site in your Internet blacklist. This site is so full of bad answers and bad practices. Use Oracle's official resources instead, or Stackoverflow.com of course.