使用ESAPI无法使用此URI找到任何标记库

时间:2016-06-27 13:43:59

标签: jsp esapi

我刚刚将此标记添加到JSP

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

但是我在编译时遇到了这个错误

  [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"%>

1 个答案:

答案 0 :(得分:1)

 <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>