• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tag Files for JSP 2.0 compliant container

 
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic