Tag Library Descriptor

Une TLD est un document XML qui contient les informations d'une librairie et qui définit la fonctionnalité des tags. La TLD est utilisée par un conteneur de …

Tag Library Descriptor

Une TLD est un document XML qui contient les informations d'une librairie et qui définit la fonctionnalité des tags. La TLD est utilisée par un conteneur de servlets qui valide les tags et par les outils de développement des pages JSP.
Un fichier TLD doit avoir une extension .tld et doit être intégré au répertoire /WEB-INF/ du WAR ou intégré au répertoire /META-INF/ s'il fait partie d'un JAR.

Une TLD doit commencer par une définition de taglib qui spécifie le schéma et la version de la JSP utilisé :

   <taglib xmlns="http://java.sun.com/xml/ns/j2ee" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-
      jsptaglibrary_2_0.xsd" 
      version="2.0">
Élément Obligatoire Description
description Non Description de l'utilité de la tag librairie
display-name Non Nom affiché
icon Non Icône utilisée pour la tag librairie
tlib-version Oui La version de tag librairie
short-name Non Nom qui peut être utilisé par une page jsp
uri Oui URI qui identifie la tag librairie
validator Oui Voir élément validator
listener Oui Voir élément listener.
tag-file Oui
tag Oui
function Oui
tag-extension Non Extensions qui apporte un complément d'information sur la tag librairie

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.