首页上一页 1 下一页尾页 3 条记录 1/1页
《JSP项目开发全程实录》都市供求信息网 web.xml中的标签报错
发表在JavaWeb图书答疑
2015-04-02
是否精华
是
否
版块置顶:
是
否
工程师,您好! 01/WebRoot/WEB-INF/web.xml文件报错,导致项目中所有用到<%@ taglib prefix="s2" uri
="/struts-tags" %>的jsp页面都报错!! 请问如何解决?? (已经将struts2.0的jar包导入到lib中了)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
[font color=#FF0000]<taglib>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
[/font]
</web-app>
="/struts-tags" %>的jsp页面都报错!! 请问如何解决?? (已经将struts2.0的jar包导入到lib中了)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
[font color=#FF0000]<taglib>
<taglib-uri>struts2</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tags.tld</taglib-location>
</taglib>
[/font]
</web-app>