jsp error-page没有生效

1、首页检查web.xml中的配置,确保路径是正确的

<error-page>

<error-code>404</error-code>

<location>/error.jsp</location>

</error-page>

2、然后再检查error.jsp文件内容是否有问题,比如只有<head>,没有结束</head>

posted @ 2014-07-09 19:04  ppjj  阅读(321)  评论(0编辑  收藏  举报