%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String find_name = request.getParameter("find_name"); String update_name = request.getParameter("update_name"); String value = request.getParameter("value"); int code = Integer.parseInt(request.getParameter("code")); SchoolDTO update_dto = new SchoolDTO(update_name,value,code); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.update(update_dto, find_name); if (check){ msg = find_name + "님의 정보가 수정 되었습니다..."; } else { msg = "수정 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/update/result.jsp"); %>"> <%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String find_name = request.getParameter("find_name"); String update_name = request.getParameter("update_name"); String value = request.getParameter("value"); int code = Integer.parseInt(request.getParameter("code")); SchoolDTO update_dto = new SchoolDTO(update_name,value,code); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.update(update_dto, find_name); if (check){ msg = find_name + "님의 정보가 수정 되었습니다..."; } else { msg = "수정 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/update/result.jsp"); %>"> <%@page import="school.dto.SchoolDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String find_name = request.getParameter("find_name"); String update_name = request.getParameter("update_name"); String value = request.getParameter("value"); int code = Integer.parseInt(request.getParameter("code")); SchoolDTO update_dto = new SchoolDTO(update_name,value,code); SchoolDAO dao = new SchoolDAO(); String msg = ""; boolean check = dao.update(update_dto, find_name); if (check){ msg = find_name + "님의 정보가 수정 되었습니다..."; } else { msg = "수정 실패..."; } request.setAttribute("msg", msg); pageContext.forward("/update/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 find_name = request.getParameter("find_name");
String update_name = request.getParameter("update_name");
String value = request.getParameter("value");
int code = Integer.parseInt(request.getParameter("code"));
SchoolDTO update_dto = new SchoolDTO(update_name,value,code);
SchoolDAO dao = new SchoolDAO();
String msg = "";
boolean check = dao.update(update_dto, find_name);
if (check){
msg = find_name + "님의 정보가 수정 되었습니다...";
} else {
msg = "수정 실패...";
}
request.setAttribute("msg", msg);
pageContext.forward("/update/result.jsp");
%>