Brian, the most "portable" way to do this would be to create your own .tld file, then add it to the META-INF directory inside the JAR file that contains your custom tags, for example using the Ant <metainf> target.
Then, in your JSPs, just make sure you import your tag library by the URI defined in your .tld file. So in your .tld file you'd have a declaration like this... <taglib> ... <uri>http://www.pingtoo.com/brian.tld</uri> ...and the import would look like this: <%@ taglib uri="http://www.pingtoo.com/brian.tld" prefix="b" %> This is definitely the best way, because you won't have to hack up the jspwiki.tld file, and it keeps your .tld with your custom classes. Andrew On Thu, Apr 9, 2009 at 2:38 AM, Janne Jalkanen <[email protected]> wrote: >> I feel somewhat constrained because I am working with a submitted plugin >> which is not intended to be packaged as part of jspWiki. It is part of my >> own namespace at the moment, copied into WEB-INF/lib and loaded via >> jspwiki.plugin.searchpath. I haven't worked with tags before, but I can see >> that the standard set are all defined in WEB-INF/jspwiki.tld. If I were to >> add my own tag definition to WEB-INF/jspwiki.tld, do you think the same >> ClassLoader that loads my plugin from my own jar would also be find my >> custom tag in the same jar? > > Yup, that should work perfectly! > > /Janne >
