A TLD (Tag Library Descriptor) is a file which allows you to assemble some custom tags in one library, identified by a uri. Custom tags can be either .class files compiled from Java sources (Classic and Simple tags), or Tag Files, whose extension is .tag or .tagx. For Classic and Simple tags, you need to use a TLD to declare them, to be able to use them in your JSPs. On the contrary, Tag Files do not need a TLD (unless packages in a JAR file), because the container will detect them automatically.
very thanks,i am using HeadFirst.thanks for the clarification.
Anton Golovin
Ranch Hand
Joined: Jul 02, 2004
Posts: 473
posted
Christophe, who do i petition to become a rancher?
Originally posted by Christophe Verre: A TLD (Tag Library Descriptor) is a file which allows you to assemble some custom tags in one library, identified by a uri. Custom tags can be either .class files compiled from Java sources (Classic and Simple tags), or Tag Files, whose extension is .tag or .tagx. For Classic and Simple tags, you need to use a TLD to declare them, to be able to use them in your JSPs. On the contrary, Tag Files do not need a TLD (unless packages in a JAR file), because the container will detect them automatically.
What book are you using ?
Anton Golovin<br /><i>anton.golovin@gmail.com</i><br />SCJP, SCJD, SCBCD, SCWCD