使用标签时报错 <? xml version="1.0" encoding="UTF-8" ?> < 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" > < servlet > < servlet-name > action </ servlet-name > < servlet-class > org.apache.struts.action.ActionServlet </ servlet-class > < init-param > < param-name > config </ param-name > < param-value > /WEB-INF/struts-config.xml </ param-value > </ init-param > < init-param > < param-name > debug </ param-name > < param-value > 3 </ param-value > </ init-param > < init-param > < param-name > detail </ param-name > < param-value > 3 </ param-value > </ init-param > < load-on-startup > 0 </ load-on-startup > </ servlet > < servlet-mapping > < servlet-name > action </ servlet-name > < url-pattern > *.do </ url-pattern > </ servlet-mapping > < welcome-file-list > < welcome-file > selfile.jsp </ welcome-file > </ welcome-file-list > < jsp-config > <!--这里一定要写上jsp-config 标签,进行验证--> < taglib > < taglib-uri > /tags/struts-bean </ taglib-uri > < taglib-location > /WEB-INF/struts-bean.tld </ taglib-location > </ taglib > < taglib > < taglib-uri > /tags/struts-html </ taglib-uri > < taglib-location > /WEB-INF/struts-html.tld </ taglib-location > </ taglib > < taglib > < taglib-uri > /tags/struts-logic </ taglib-uri > < taglib-location > /WEB-INF/struts-logic.tld </ taglib-location > </ taglib > < taglib > < taglib-uri > /tags/struts-nested </ taglib-uri > < taglib-location > /WEB-INF/struts-nested.tld </ taglib-location > </ taglib > < taglib > < taglib-uri > /tags/struts-tiles </ taglib-uri > < taglib-location > /WEB-INF/struts-tiles.tld </ taglib-location > </ taglib > </ jsp-config > </ web-app >