File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question on tag files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question on tag files?" Watch "Question on tag files?" New topic

Question on tag files?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


Do a .tag file need a TLD?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

I think I got this. A .tag file needs a TLD if it is deployed in a jar, but if it's put directly into the web-app inside the WEB-INF directory, it doesn't need one.
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893

If you put them inside the directory WEB-INF/tags or a subdirectory then you don't need a tld.

Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
James Mark
Ranch Hand

Joined: Jul 05, 2007
Posts: 115
that TLD should be in META-INF inside the jar that is inside WEB-INF/lib
use uri attribute in the taglib directive instead of tagdir attribute

SCJP1.4(96%) SCWCD1.4(92%)
Pawanpreet Singh
Ranch Hand

Joined: Jun 12, 2005
Posts: 264

Hi Jothi,

The syntax in tld file which will be under META-INF of jar file will be like this

I agree. Here's the link:
subject: Question on tag files?
It's not a secret anymore!