Bonjour, je continue mon parcours initiatique et n'arrive pas à utiliser correctement les librairies standard JSTL. Je suis noob, je sais...

J'ai déclaré ceci dans mon web.xml :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
    <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
    <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
    <taglib-location>/WEB-INF/sql.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
    <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
    <taglib-location>/WEB-INF/x.tld</taglib-location>
  </taglib>
 
  <taglib>
    <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
    <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
  </taglib>
et ma page .jsp contient ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
  <head>
    <title>Exemple</title>
  </head>
 
  <body>
      <c:out value="Bonjour" /><br/>
  </body>
</html>
Je pense savoir d'où vient le problème : <taglib-location>/WEB-INF/c.tld</taglib-location> et les autres vont poser le même problème car je n'ai pas ces fichiers dans mon WEB-INF. Je crois savoir, arrêtez-moi si je dis une bétise, qu'il faille télécharger d'autres .jar (standard.jar et jstl.jar ?) mais je suis un peu paumé sur la page : http://jakarta.apache.org/site/downl...s-standard.cgi

Je ne comprends pas non plus pourquoi il faille déclarer des uri/liens externes sur la page jsp...Je crois ce qui me pose le plus de soucis en fait avec la techno JAVA c'est tout ce qui se passe en amont, le paramétrage avant de pouvoir coder...

Merci de votre aide.

Cordialement,

hpl76