在tomcat中设置了404和505等页面,设置方法,打开web.xml


    <error-page>
        <error-code>505/error-code>
        <location>/505.html</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/403.html<location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/404.html</location>
    </error-page>

设置404.html的内容为test 404,然后随便输入个URL用IE进行测试,显示始终是错误,但用FF就显示正常,然后就定位是IE的问题,调查资料发现IE存在问题,当404页面内容小于512bytes时候,就会用IE自带的错误显示页面.

Tags: 404505IE Category: java
Posted on 2008-06-16 21:58:40 reader (479) | Comments (0)

0 Comments »

发表评论

验证码,看不清楚?请点击刷新验证码