Cannot find the tag library descriptor for /WEB-INF/struts-html.tld in Struts

后端 未结 2 1296
时光取名叫无心
时光取名叫无心 2021-01-26 05:06

I am new to the Struts framework and while developing a simple Struts 2 application I\'m getting the following error:

Cannot find the tag library descriptor for          


        
相关标签:
2条回答
  • 2021-01-26 05:31

    struts-html.tld is a TLD for Struts 1 tags.

    Struts 2 uses a single TLD, struts-tags.tld, and it's in the struts2-core-2.x.x.jar.

    You can declare it as follows:

    <%@ taglib prefix="s" uri="/struts-tags" %>
    

    There are other TLDs like struts-dojo-tags (deprecated in 2.1), struts-jquery-tags, etc... but start with the main one, take a tour of Struts2 and then eventually try to use the "extensions".

    0 讨论(0)
  • 2021-01-26 05:38

    Can not find the tag library descriptor

    For above Error.

    Please upload the Struts 2 core jar file to the Build path of your application/web project, it works.

    Thanks Ghouse khan.

    0 讨论(0)
提交回复
热议问题