Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the diffrence between TLD and tag file

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello i am confused,what is a tag file and what is a TLD file.
for custom tags do you need TLD file also?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very thanks,i am using HeadFirst.thanks for the clarification.
 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are referring to the saloon title, please read this FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic