web.xml中配置<error-page>标签不起作用的问题

例如:

    <!-- 配置404与500错误处理 -->    
	<error-page>
		<error-code>404</error-code>
		<location>/404.htm</location>
	</error-page>
	<error-page>
		<error-code>500</error-code>
		<location>/500.htm</location>
	</error-page>


解决方法:internet选择--高级--显示友好的http错误信息的勾去掉!

posted @ 2012-05-09 11:25  Zollty  阅读(506)  评论(0编辑  收藏  举报