如果是头是这样的<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.3" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd">
直接在后面加
- <taglib>
- <taglib-uri>/WEB-INF/struts-logic.tldtaglib-uri>
- <taglib-location>/WEB-INF/struts-logic.tldtaglib-location>
- taglib>
如果头是这样的
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
在后面加
- <jsp-config>
- <taglib>
- <taglib-uri>/WEB-INF/validator-user.tldtaglib-uri>
- <taglib-location>/WEB-INF/validator-user.tldtaglib-location>
- taglib>
- jsp-config>