[ACCEPTED]-What JAR files are needed for Eclipse to use JSTL so it ultimately works on GAE/J?-servlets
I had the same issue and I simply put the 2 prefix = "c" at the end of the taglib definition
before:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
after:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
And 1 all warnings disappear from Eclipse.
You only need to specify this dependency 3 in your Maven POM:
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
In my code, this provided 2 everything I needed for the following JSP 1 taglib to work:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Ensure that your web.xml
root declaration complies 10 at least Servlet 2.4.
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- Config here. -->
</web-app>
Or if your servletcontainer 9 supports it, prefer 2.5:
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<!-- Config here. -->
</web-app>
O if it supports 8 the latest version3.0
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<!-- Config here. -->
</web-app>
Otherwise everything 7 will fall back to least supported modus 6 and taglibs may break like that.
Also ensure 5 that you don't have loose tld
files wandering 4 around in the classpath (the /WEB-INF/lib
folder, among 3 others), they will collide with the ones 2 in JAR files. Oh, also ensure that you didn't 1 manually define the tlds in web.xml
, keep it clean.
As far as i know you need jstl.jar and standard.jar. Put 1 those under WEB-INF/lib.
Add taglibs-standard-impl-1.2.5 from Apache to the build path of the project. This 1 may resolve the issue.
add jstl-1.2-sources.jar into your Tomcat\lib 1 directory
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.