当前位置:编程学习 > JS >>

struts配置错误页面

<!-- 出错页面定义 -->
    <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/pageError.jsp</location>
    </error-page>
    <error-page>
        <error-code>500</error-code>
        <location>/pageError.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/notFound.jsp</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/common/403.jsp</location>
    </error-page>

摘自 web前端wyy的专栏

补充:Web开发 , Jsp ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,