Web.xml


<error-page> <!-- 404에러처리 -->

<error-code>404</error-code>

<location>/error/404code.jsp</location>

</error-page>

<error-page><!-- 500에러처리 -->

<error-code>500</error-code>

<location>/error/500code.jsp</location>

</error-page> 



/error/404code.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"

pageEncoding="UTF-8"%>

<%

response.setStatus(HttpServletResponse.SC_OK);

%>

<html>

<head>

<title>404에러페이지</title>

</head>

<body>요청하싞페이지는존재하지않습니다.

</body>

</html>

+ Recent posts