<error-page>
<error-code>400</error-code>
<location>/errorDocument.html</location>
</error-page> <error-page>
<error-code>404</error-code>
<location>/errorDocument.html</location>
</error-page> <error-page>
<error-code>500</error-code>
<location>/errorDocument.html</location>
</error-page>
在web.xml 配置一下就可以了
<error-code>400</error-code>
<location>/errorDocument.html</location>
</error-page> <error-page>
<error-code>404</error-code>
<location>/errorDocument.html</location>
</error-page> <error-page>
<error-code>500</error-code>
<location>/errorDocument.html</location>
</error-page>
在web.xml 配置一下就可以了
http://www.cnblogs.com/kunhony/archive/2006/06/16/427305.html