• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tld in jar file

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If my tld is in jar file what will be my taglib-location??
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In web.xml:Will try to load "META-INF/taglib.tld" from the mytags jar archive. Quite a neat way to package your tags, it makes you wonder why so many taglibs come with separate tld files.
You can also directly refer to the jar when you define the tag prefix (<%@taglib prefix=...%>) in your jsp. In that case you don't need an entry in web.xml - but avoid this method if you need the tags more than one or two jsps.
- Peter
[ April 08, 2002: Message edited by: Peter den Haan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic