web.xml 报错:cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http://
java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://
java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://
java.sun.com/xml/ns/j2ee":icon,
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<jsp-config></jsp-config>
<taglib> <!--报错--->
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>
始终会报错 这是使用版本的问题 如果是2.3版本是可以直接在<web-app>里面书写
对于2.4(貌似是2.4及以后版本都是这样)的web-app,taglib标签的放置位置已经发生改变,要放在<jsp-config>标签下