Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

About taglib.tld

Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In SCWCD Exam Study Kit (SCE310-080), it states on pg.286

when deployed in a JAR file, a TLD file be placed either directly under or inside a subdirectory of the META-INF directory. In addition, the name of the TLD file must be taglib.tld.

In JSP 2.0 specification, it states

JSP.7.2.1 Packaged Tag Libraries
Packaged tag libraries must have at least one tag library descriptor file. The JSP 1.1 specification allowed only a single TLD, in META-INF/taglib.tld, but as of JSP 1.2 multiple tag libraries are allowed. See Section JSP.7.3.1 for how TLDs are identified.

When I specify
in web.xml, I am getting error about not being able to find taglib.tld.
When I comment <taglib> element out, the application works fine. I check appserv-jstl.jar, there is no taglib.tld anywhere under META-INF, all they have are c.tld, fmt.tld,.. etc.

1. So why does the book (which is meant for JSP 1.2), it has to be taglib.tld while the JSP spec says that is only for JSP 1.1 ?

2. From my experience, it seems that when you define explicit mapping in deployment descriptor, the jsp container is looking for taglib.tld, when in implicit mapping (without <taglib> defined in web.xml), the jsp container reads all .tld under META-INF folder in the packaged jar files.
Is my assumption right?

I am using Jboss 3.2.6 with Tomcat 5.0

    Bookmark Topic Watch Topic
  • New Topic