Previous projects, import, reference the JSP page of the struts 2 tag
<%@ taglib prefix="s" uri="/struts-tags" %>
Cannot find the tag library descriptor for/struts Tags
Struts tags is the default URI of the struts 2 tag library
Solution:
1. Modify the JSP file (even if you type a space, and then delete it), save it, and the error disappears. It is estimated that there was no error originally, it was a MyEclipse verification error
Here’s how to do it online: I tried, and the second one worked
2. Put the package of struts2-core-2.3.1.2.jar under WEB-INF/lib, and the error disappears
3. Automatic prompt function of struts 2 tag
1. Extract the struts-tags.tld from the struts 2 package and put it on the local hard disk
2 eclipse – Window – XML catalog, click add, enter/struts tags for URI, enter the location of struts tags.tld for local path, and click OK to restart eclipse
Using struts 2 tag in Engineering
1、 The struts 2 tag definition file is under struts 2-core-2.0.11.1meta-inf, and its name is struts-tags.tld
2、 Import tag library with taglib compiler instruction in JSP@ taglib prefix=”s” uri=”/struts-tags” %>