| web.xml 中<taglib>报错解决方法 |
|
xiaoyuer 原创 更新:2008-09-01 18:00:01 版本: 1.0
|
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <taglib> <taglib-uri>http://jsptags.com/tags/navigation/pager</taglib-uri> <taglib-location>/WEB-INF/pager-taglib.tld</taglib-location> </taglib> </web-app> 按上面进行配置时MyEclipse一直在报错,应该把<taglib> 放到 <jsp-config>中: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <jsp-config> <taglib> <taglib-uri>http://jsptags.com/tags/navigation/pager</taglib-uri> <taglib-location>/WEB-INF/pager-taglib.tld</taglib-location> </taglib> </jsp-config> </web-app>
|
|
|
评论人:containsoft
|
发表时间: Mon Sep 01 19:10:18 CST 2008
|
谢谢分享
|
|
|
评论人:wty_703
|
发表时间: Tue Sep 02 17:34:31 CST 2008
|
|
不同的dtd 不同的规则
|
|
|
评论人:twh125
|
发表时间: Wed Sep 03 09:14:30 CST 2008
|
|
刚好有用!
|
|
|
评论人:zjy780108
|
发表时间: Thu Sep 04 15:57:25 CST 2008
|
|
好,很好
|
|
|