应该是<location>还是<url-pattern>啊??
我楼主解决了说下,呵呵.

解决方案 »

  1.   

    这个http://localhost:8080/WebJSP/error404.html 没有问题吧?
      

  2.   

    配置文件没错。。
    去掉
    Internet选项--高级---显示友好的http错误信息
    前面的√再试试看
      

  3.   

    <error-page>
     <error-code>404</error-code>
     <location>/error404.html</location>
    </error-page>
    是location没错,我工程也这么写的,下面是我工程里面的
    <error-page>
     <error-code>404</error-code>
     <location>/shtml/wrongpage.html</location>
    </error-page><error-page>
     <error-code>500</error-code>
     <location>/shtml/errpage.html</location>
    </error-page>
    没问题,
    过滤器用url-pattern
    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping><filter-mapping>
    <filter-name>myfilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>