可以自己改。在web.xml里,定义
<error-page>
<error-code>500</error-code>
<location>/errorPage.jsp</location>
</error-page>
这样就可以通过指定errorPage.jsp来指定500错误的错误页了在那些httpservlet不能辨认的错误(比如密码输入错误)
可以自己写
<init-param>
<param-name>error-page</param-name>
<param-value>/errorPage.html</param-value>
</init-param>
然后通过改变errorPage.html来指定错误
<error-page>
<error-code>500</error-code>
<location>/errorPage.jsp</location>
</error-page>
这样就可以通过指定errorPage.jsp来指定500错误的错误页了在那些httpservlet不能辨认的错误(比如密码输入错误)
可以自己写
<init-param>
<param-name>error-page</param-name>
<param-value>/errorPage.html</param-value>
</init-param>
然后通过改变errorPage.html来指定错误
<error-page>
<error-code>404</error-code>
<location>/html/error_404.htm</location>
</error-page>