web.xml设置error-page不起作用原因

设置web.xml的error-page时,如果是IE浏览器,错误页面大小要超过50k
可以用firefox测试,或是关闭浏览器的友好信息提示
否则设置将不起作用

<!-- Error code page -->
<error-page>
<error-code>404</error-code>
<location>/error/404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/500.html</location>
</error-page>

你可能感兴趣的:(Web,xml,浏览器,IE,firefox)