2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Where do I put jstl.jar and standard.jar so that Netbeans don't give errors/warnings?

I am continuously getting taglib error messages because of jstl.jar and standard.jar.

Please let me know the valid path to keep these dependencies to come out from the exception.

userimage

You need to keep your dependencies in your webapp , just put them inside /WEB-INF/lib folder of your web project. This way it will automatically be taken in the classpath/buildpath.

Then, in your JSP files ensure that you're using the right taglib URI's as outlined in the JSTL TLD documentation. For example, JSTL core needs to be declared as follows:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 

Note the /jsp path. It was introduced since JSTL 1.1. The JSTL 1.0 doesn't have the /jsp path. If you omit it in JSTL 1.1/1.2, then things won't work. Also note that you should't use the _rt suffix such as /core_rt, this was the old prototype version.

By the way, in jstl-1.2.jar the standard.jar is obsolete. If you want, just delete both the jstl and standard JAR's you currently have and use this single JAR instead (yes, just drop in /WEB-INF/lib and anything will go flawlessly).

Answer is