This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

tld inside a jar linked by web.xml

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9691
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic