Bonjour à tous,

Je voudrais utiliser les JSTL dans mon projet Web, sachant que je n'ai ni Struts ni JSF ni rien d'autre que JEE de base avec Tomcat 5.5.

Je suis sous Eclipse avec le plugin m2eclipse pour maven 2.

Je ne sais pas trop quoi mettre comme dépendance dans mon pom.xml pour avoir tout ce qu'il faut. J'ai essayé jstl et standard mais ça ne marche pas comme il faut.

Dans mon pom :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
    <dependency>
      <groupId>jstl</groupId>
      <artifactId>jstl</artifactId>
      <version>1.1.2</version>
    </dependency>
Dans ma page :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
...
<c:if test="${'1' == '1'}">
coucou
</c:if>
mais j'ai ça :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
3 mars 2008 13:26:39 org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
org.apache.jasper.JasperException: L'uri absolue: http://java.sun.com/jstl/core ne peut être résolu dans le fichier web.xml ou dans les fichiers jar déployés avec cette application
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:317)
	at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
	at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:127)
	at org.apache.jasper.compiler.ParserContro