7 个解决方案
#1
<error>404.html</error>配置如下
#2
在web.xml文件中配置如下代码:
<!-- 错误页面 -->
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/400.jsp</location>
</error-page>
#3
多谢,搞定!
#4
<error>404.html</error> ,是指什么,报错啊!还有为什么.jsp下面有红色曲线呢?这代表什么?

#5

#6
不好意思,我之前大概写了一下,在手机上回复不好写。重新整理了一下。。。。



#7
OK,已解决,您能帮忙推荐一些JavaEE学习的书吗,较深层次的
#1
<error>404.html</error>配置如下
#2
在web.xml文件中配置如下代码:
<!-- 错误页面 -->
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/400.jsp</location>
</error-page>
#3
多谢,搞定!
#4
<error>404.html</error> ,是指什么,报错啊!还有为什么.jsp下面有红色曲线呢?这代表什么?

#5

#6
不好意思,我之前大概写了一下,在手机上回复不好写。重新整理了一下。。。。



#7
OK,已解决,您能帮忙推荐一些JavaEE学习的书吗,较深层次的