Search code examples
jspesapi

No tag library could be found with this URI using ESAPI


I've just added this tag to the JSP

<%@ taglib prefix="esapi"   uri="http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API"%>

But I got this error when compiling

  [java] No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
     [java] <%@ taglib prefix="esapi"   uri="http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API"%>

Solution

  •  <jsp-config>
            <taglib>
                <taglib-uri>http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API</taglib-uri>
                <taglib-location>/WEB-INF/tld/esapi.tld</taglib-location>
            </taglib>
        </jsp-config>