首页 > 代码库 > jsp一些使用技巧

jsp一些使用技巧

1、web.xml中配置error页面

一、<error-page>
        <error-code>500</error-code>
        <location>500.jsp</location>
    </error-page>
二、<error-page>
        <exception-type>java.lang.xxxException</exception-type>
        <location>500.jsp</location>
    </error-page>

 

jsp一些使用技巧