<%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name = request.getParameter("name"); SchoolDTO dto = new SchoolDTO(name,"",0); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.delete(dto); if (check){ msg = name + "님의 정보가 삭제 되었습니다..."; } else { msg = "삭제 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/delete/result.jsp"); %>"> <%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name = request.getParameter("name"); SchoolDTO dto = new SchoolDTO(name,"",0); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.delete(dto); if (check){ msg = name + "님의 정보가 삭제 되었습니다..."; } else { msg = "삭제 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/delete/result.jsp"); %>"> <%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name = request.getParameter("name"); SchoolDTO dto = new SchoolDTO(name,"",0); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.delete(dto); if (check){ msg = name + "님의 정보가 삭제 되었습니다..."; } else { msg = "삭제 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/delete/result.jsp"); %>">
<%@page import="school.dao.SchoolDAO"%>
<%@page import="school.dto.SchoolDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("utf-8");
String name = request.getParameter("name");
SchoolDTO dto = new SchoolDTO(name,"",0);
SchoolDAO dao = new SchoolDAO();

String msg = "";
boolean check = dao.delete(dto);
if (check){
	msg = name + "님의 정보가 삭제 되었습니다...";
} else {
	msg = "삭제 실패...";
}

request.setAttribute("msg", msg);
pageContext.forward("/delete/result.jsp");
%>