• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

tld inside a jar linked by web.xml

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I can link directly from a jsp to a tld located in a jar by uri tag, without using the web.xml file. But I have done a test using the web.xml and it doesn't work.

page.jsp


web.xml



taglibJarExample.jar/META-INF/taglibJar.tld


Error: Unable to read TLD "META-INF/taglib.tld" from JAR file

Why is looking for taglib.tld and not for taglibJar.tld?
If I rename taglibWithinJar.tld to taglib.tld and edit the web.xml, as following, it works fine. Any explanation?

web.xml


Thanks,
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URI has nothing to do with the name of the tld file:

In this case, the container will not look for taglibJarExample.jar/META-INF/anyrandomstring.tld. Inside a jar, the name of the tld should always be taglib.tld. You can check this documentation on this...
 
You can thank my dental hygienist for my untimely aliveness. So tiny:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic