put this to ur web.xml<error-page>
   <error-code>404</error-code>
   <location>http://blockerrorpage</location>
</error-page>

解决方案 »

  1.   

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      
      <error-page>
        <error-code>404</error-code>
        <location>/404error.htm</location>
      </error-page>
      <error-page>
        <error-code>500</error-code>
        <location>/error.jsp</location>
      </error-page>
      <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/error.jsp</location>
      </error-page>
    </web-app>