FreeMarker automatically scans all the JAR files in your WEB-INF / lib directory. If he finds .tld files in the JAR META-INF directory, like your META-INF / mytaglib.tld, he will look inside to find the <uri> . If he finds one, he will make taglib accessible through this URI, for example taglib defined as
<taglib> <shortname>my custom taglib</shortname> <uri>http://example.org/mytaglib</uri> </taglib>
can be used in freemarker through
<#assign my=JspTaglibs["http://example.org/mytaglib"] />
At least it worked for me ...
source share