![]() |
![]() |
||||
This element is used to declare the location of the JSP Custom Tag Library TLD file.
The location should be specified as a relative path from the application root.
For example:
<jsp-config> <taglib> <taglib-uri>mytags</taglib-uri> <taglib-location>/WEB-INF/jsp/mytaglib.tld</taglib-location> </taglib> </jsp-config>
The <taglib> section is no longer required in web.xml since JSP 2.0 / Servlets 2.4. See the article Removing taglib from web.xml for further details.