Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Correct Way to Package Taglibs in a Jar File  RSS feed

 
Brian Stempin
Greenhorn
Posts: 1
Chrome Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm experienced with Java, but I'm now starting to use J2EE and JSP. I have a few web applications that all could use a common set of tags. Instead of having all 3 web apps have their own copy of the TLDs and classes, I'd like to package them into a JAR and have each web app reference the JAR.

I've done some Googling, but my Google-Fu seems to be off. Can anybody point me to some definitive documentation about the correct way to do this? Pointers would be nice, too .

TIA,
Brian
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the definitive documentation is the JSP Specification, which all JSP authors should have handy.

But what it comes down to is: jar up the class files as per usual, and put the .tld in META-INF.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!