IntelliJ Java IDE
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tld in jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "tld in jar file" Watch "tld in jar file" New topic
Author

tld in jar file

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
If my tld is in jar file what will be my taglib-location??
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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 ]
 
 
subject: tld in jar file
 
Threads others viewed
unable to find jar
Question on Tag files
confusion between tag file and tld
Tiles.tld file link
Not being able to locate TLD file?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture