How to add JSTL to Maven?
Posted
by
La Chamelle
on Stack Overflow
See other posts from Stack Overflow
or by La Chamelle
Published on 2011-02-28T22:09:59Z
Indexed on
2011/02/28
23:25 UTC
Read the original article
Hit count: 304
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x.
I need to use c:forEach for some primefaces component like dynamic number of p:tab but i have problem with the c:forEach. All the other tag of JSTL work nice.
I have the following error :
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/LoopTagStatus
I use the following xmlns:c="http://java.sun.com/jsp/jstl/core"
, i tried to replace with xmlns:c="http://java.sun.com/jstl/core"
but nothing display with the second.
This is the exact version of lib:
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.2-FCS</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.4-b03</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2</version>
</dependency>
How i can fix it ?
I can give more specific information if needed.
© Stack Overflow or respective owner