The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes what is the diffrence between TLD and tag file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "what is the diffrence between TLD and tag file" Watch "what is the diffrence between TLD and tag file" New topic
Author

what is the diffrence between TLD and tag file

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

hello i am confused,what is a tag file and what is a TLD file.
for custom tags do you need TLD file also?


Sudheer
SCWCD, SCJP 5
Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

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 ?


[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

very thanks,i am using HeadFirst.thanks for the clarification.
Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 473
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
Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

If you are referring to the saloon title, please read this FAQ.
 
 
subject: what is the diffrence between TLD and tag file
 
developer file tools