Bonjour,
Je travaille sur des projets Struts, et je rencontre un problème avec le référencement des TLDs :
J’ai deux projets, projet 1 et projet2
voilà l’architecture du projet1 (architecture classique qui fonctionne) :
Dans mon fichier jsp je déclare mon taglib comme ça :
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
Et j’utilise le tag suivant :
<logic:greaterThan ..> </logic:greaterThan>
Dans mon WEB-INF\web.xml le tag lib est déclaré ainsi :
1 2 3 4 5 6 7
|
<taglib>
<taglib-uri>http://struts.apache.org/tags-logic</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
</jsp-config> |
Et mon fichier tls se trouve dans le dossier lib : WEB-INF\lib\struts-logic.tld
Question :
Comment référencé cette TLD dans mon projet2 sans avoir besoin d’avoir le tld en copie cad je veux mon projet2 utilise projet1 pour déclarer le fichier struts-logic.tld
J’utilise struts 1.2.8 sous eclipse 3.4.2 et Tomcat 5.5
Merci d'avance pour votre aide
Partager