<% 
Integer statusCode = (Integer)request.getAttribute("javax.servlet.error.status_code");
String servletName = (String)request.getAttribute("javax.servlet.error.servlet_name");
String requestUri = (String)request.getAttribute("javax.servlet.error.request_uri");
String type = request.getParameter("type");
StringBuilder redirectPage = new StringBuilder();
redirectPage.append(((javax.servlet.http.HttpServletRequest)request).getContextPath());
if("systemError".equals(type)) {
	redirectPage.append("/error/systemError");
} else if("logOut".equals(type)) {
	redirectPage.append("/login/index?type=logout");
} else {
	redirectPage.append("/error/notFound?url=");
	redirectPage.append(java.net.URLEncoder.encode(requestUri , "UTF-8"));
}
response.sendRedirect(redirectPage.toString());
 %>

