辅导:关于web.xml中报错解决方法
来源:优易学  2011-10-27 12:41:41   【优易学:中国教育考试门户网】   资料下载   IT书店
  <web-appxmlns: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/javaeehttp://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>中:
  <?xmlversion="1.0"encoding="UTF-8"?>
  <web-appxmlns: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/javaeehttp://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>

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训