2018. 7. 25. 11:45
web.xml 에러 페이지 설정 Java/Servlet2018. 7. 25. 11:45
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> .................... <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/error/_exception.jsp</location> </error-page> <error-page> <exception-type>java.lang.Exception</exception-type> <location>/error/_exception.jsp</location> </error-page> <error-page> <error-code>400</error-code> <location>/error/_exception.jsp</location> </error-page> <error-page> <error-code>403</error-code> <location>/error/_exception.jsp</location> </error-page> <error-page> <error-code>404</error-code> <location>/error/_not_found.jsp</location> </error-page> <error-page> <error-code>405</error-code> <location>/error/_exception.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/error/_exception.jsp</location> </error-page> <error-page> <error-code>503</error-code> <location>/error/_exception.jsp</location> </error-page> .................... </web-app> | cs |
'Java > Servlet' 카테고리의 다른 글
mybatis Exception varbinary은(는) text과(와) 호환되지 않습니다 (0) | 2020.11.30 |
---|---|
Spring MVC Controller에서 ServletContext 사용하기 (0) | 2017.09.21 |
Log4j 설정파일 위치 지정하기 (0) | 2014.03.14 |
JSTL loop (0) | 2014.03.14 |
Servlet Filter에서 Spring Bean 사용 (1) | 2014.03.14 |