jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tag Files for JSP 2.0 compliant container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tag Files for JSP 2.0 compliant container" Watch "Tag Files for JSP 2.0 compliant container" New topic

Tag Files for JSP 2.0 compliant container

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206

Can any one explain me what this mean?
A JSP 2.0 compliant container will automatically genarate an implicit tag library for a set of tag files.


Thanks, AR
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

The container will look for Tag Files (.tag) under WEB-INF (or a subdirectory of it) (Jarred Tag Files is another story). It will then create a TLD for these files, so you don't need to make one. That's what they mean by "implicit tag library".

[My Blog]
All roads lead to JavaRanch
Rovart Shrivastava

Joined: Feb 13, 2009
Posts: 4
I think when we use "tagdir" in jsp to give the info of tag file location , container create itself tld file for given tag.
but when we use "uri" in jsp then container look for tld file created for the tag.
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 324
Packaging tag files directly in a web application , The JSP container must generate an implicit tag library for each directory
under and including /WEB-INF/tags/. This tag library can be imported only via the
tagdir attribute of the taglib directive.

But If you placed your tag files as a JAR under META-INF/tags directory then have to declared a explicit tag library OR TLD file to mention the location of that tag files.
<tag-file> element should be used in that case.

Please refer JSP specification 2.0 (JSP.8.4.3 Packaging Directly in a Web Application)

I hope this will help


Thanks <br />Poonam Agarwal SCWCD 86%
I agree. Here's the link: http://aspose.com/file-tools
subject: Tag Files for JSP 2.0 compliant container
It's not a secret anymore!