请问一下为什么我在我的web.xml文件中添加以下代码:
<taglib>
        <taglib-uri>http://jpager.com/taglibs/page</taglib-uri>
        <taglib-location>/WEB-INF/tld/jpager.tld</taglib-location>
</taglib> 
后eclipse为什么会报错啊?

解决方案 »

  1.   

    <jsp-config>
    <taglib>
    <taglib-uri>/spring</taglib-uri>
    <taglib-location>/WEB-INF/spring.tld</taglib-location>
    </taglib>
    </jsp-config>这样就不会报错了
      

  2.   

    <taglib>
        <taglib-uri>/tags/struts-bean</taglib-uri>
        <taglib-location>/WEB-INF/tags/struts-bean.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/tags/struts-html.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-nested</taglib-uri>
        <taglib-location>/WEB-INF/tags/struts-nested.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-logic</taglib-uri>
        <taglib-location>/WEB-INF/tags/struts-logic.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/struts-tiles</taglib-uri>
        <taglib-location>/WEB-INF/tags/struts-tiles.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>/tags/orteus-tags</taglib-uri>
        <taglib-location>/WEB-INF/tags/orteus-tags.tld</taglib-location>
      </taglib>