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” %>
Similar Posts:
- Struts 2.0 Error: The Struts dispatcher cannot be found (Error 500 Internal Server Error)
- Configure Struts2 web.xml to report an error [How to Solve]
- There is no Action mapped for namespace [/] and action name [abc_show] associated with context path [/helloStruts].
- Error:Cannot find bean: “org.apache.struts.taglib.html.BEAN” in any scope
- Dubbo learning — import eclipse exception unbound classpath container (2)
- [How to Solve] Exception starting filter struts2
- How to Solve Struts2 Error: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
- Tomcat 8.5 reports errors using JSTL [How to Solve]
- How to Solve Web APP Tag Error in Web.xml
- [Solved] pip Install Error: is not a supported wheel on this platform