• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a jar that contains tld's

 
preddy south
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I have a doubt on jar file making.
I have a tld file(xyz.tld).I put this in WEB-INF/tlds directory and represented as <taglib-location>/WEB-INF/tlds/xyz.tld</taglib-location>
in web.xml
My doubt here is how to make a JAR file so that i can able to put all my tld's into that JAR and accessing throughout my application by putting <taglib-location>/WEB-INF/lib/xyz.jar</taglib-location> in web.xml

Thanks in advance.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Havent tried this, but this is what i could find:

Section: Zip up TLD files at:
Java World Article

Try it out.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place your tld files in the jar's META-INF folder. Then remove any references to the tlds in your web.xml. They're not necessary. When referencing the tld be sure to use the tld's URI.
 
preddy south
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't get any idea.
Could you please explain me in detail.
Thanks in advance..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read Bear's post?
It seems pretty detailed to me.
 
preddy south
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it..
Thanks to all..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic