aspose file tools*
The moose likes JSP and the fly likes How to make a jar that contains tld's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to make a jar that contains tld Watch "How to make a jar that contains tld New topic
Author

How to make a jar that contains tld's

preddy south
Greenhorn

Joined: Aug 29, 2006
Posts: 7
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

Joined: Jul 20, 2005
Posts: 10059
    
163

Havent tried this, but this is what i could find:

Section: Zip up TLD files at:
Java World Article

Try it out.


[My Blog] [JavaRanch Journal]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
preddy south
Greenhorn

Joined: Aug 29, 2006
Posts: 7
I haven't get any idea.
Could you please explain me in detail.
Thanks in advance..
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you read Bear's post?
It seems pretty detailed to me.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
preddy south
Greenhorn

Joined: Aug 29, 2006
Posts: 7
I got it..
Thanks to all..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a jar that contains tld's