So, I used to configure my taglib as follows:
<jsp-config> <taglib> <taglib-uri>myTags</taglib-uri> <taglib-location>/WEB-INF/lib/mylib-2.0.1.jar</taglib-location> </taglib> </jsp-config>
But now mylib-2.0.1.jar is a maven dependency, so of course this is NOT included / WEB -INF / lib.
How can I do to configure my taglib so that I can do this in my JSP:
<%@ taglib uri="myTags" prefix="mt" %>
EDIT1: To clafiry, taglib.tld is inside META-INF inside the jar, so you can access tld by specifying the jar itself. This is a convenient way to distribute your taglib with the web application framework.
EDIT2: When we deploy webapp, the jar will be in WEB / INF / lib. But during development, inside the eclipse, using m2eclipse, the bank is NOT. Therefore, eclipse complains that it cannot find taglib no where, because there is no jar, and I cannot link to my jar in web.xml.
source share