• 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

TLD files placement in JSP

 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

I am beginner to JSP. While reading the JSP specification 2.0, I have a dought about some lines in the specs.

Page 159 it is mentioned that :

" Packaged tag libraries must hav at leatst one tag library descriptor file. The JSP 1.1 specification allowed only a single TLD, in META-INT/taglib.tls, but as of JSP 1.2 multiple tag libraries are allowed."


On page 161 :

" The TLD resource path is interpreted relative to the root of the web application and should resolve to a TLD file directly, or a JAR file that has a TLD file at location META-INF/taglib.tld. If the TLD resource path is not one of these two cases, fatal translation error will occur."

On page 162 :

" The container searches for all files with a .tld extension under /WEB-INF or a subdirectory, and inside JAR files that are in /WEB-INF/lib. When examining a JAR file, only resources under /META-INF or a subdirectory are considered."

From the above three paragraphs, it is looking some contardictions about the placement of TLD files in JAR files ( in JSP 2.0)

I have tested on my tomcat container and it is allowing me to place the .tld files under /META-INF and its subdirectory. Is it true for other containers? ( viewing the paragraph on page 161).

Any suggestion plese ?
Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic