Bonjour,

je commence a peine d'utiliser le framwork Stuts 1, et je trouve des difficulté dés le début pour la déclaration et l'utilisation des taglib. Quand j'utilise la déclaration suivante :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
il m'affiche le message d'erreur : can not find the tab library descriptor for "/WEB-INF/struts-html.tld".
et sur l'explorateur web le message d'erreur : Etat HTTP 500 - /pages/acceuil.jsp (line: 3, column: 56) Le fichier "/WEB-INF/struts-html.tld" n'a pas été trouvé.
le fichier struts-html.tld ce trouve sur le répertoire WEB-INF

voici le code source de ma page jsp :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><bean:message key="titre.bonjour"/></title>
</head>
<body>
<bean:message key="libelle.bonjour.projet"/>
</body>
</html>
et le fichier 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
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/
web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>audit</display-name>
<!-- Configuration de l'action servlet -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<jsp-config>
  <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>
  </jsp-config>
</web-app>
Merci d'avance