Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Tag Files for JSP 2.0 compliant container  RSS feed

 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
<name>
<path>
<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
Poonam
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!