<%@page import="member.dto.MemberDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name= request.getParameter("name"); String id= request.getParameter("id"); String pwd= request.getParameter("pwd"); String gender= request.getParameter("gender"); String email= request.getParameter("email"); String domain= request.getParameter("domain"); String phone= request.getParameter("tel_1") + request.getParameter("tel_2") + request.getParameter("tel_3"); String addr= request.getParameter("addr"); MemberDTO dto = new MemberDTO(); dto.setName(name); dto.setId(id); dto.setPwd(pwd); dto.setGender(gender); dto.setEmail(email); dto.setDomain(domain); dto.setTel(phone); dto.setAddr(addr); MemberDAO dao = new MemberDAO(); int su = dao.modify(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=modifyR"> <%@page import="member.dto.MemberDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name= request.getParameter("name"); String id= request.getParameter("id"); String pwd= request.getParameter("pwd"); String gender= request.getParameter("gender"); String email= request.getParameter("email"); String domain= request.getParameter("domain"); String phone= request.getParameter("tel_1") + request.getParameter("tel_2") + request.getParameter("tel_3"); String addr= request.getParameter("addr"); MemberDTO dto = new MemberDTO(); dto.setName(name); dto.setId(id); dto.setPwd(pwd); dto.setGender(gender); dto.setEmail(email); dto.setDomain(domain); dto.setTel(phone); dto.setAddr(addr); MemberDAO dao = new MemberDAO(); int su = dao.modify(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=modifyR"> <%@page import="member.dto.MemberDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String name= request.getParameter("name"); String id= request.getParameter("id"); String pwd= request.getParameter("pwd"); String gender= request.getParameter("gender"); String email= request.getParameter("email"); String domain= request.getParameter("domain"); String phone= request.getParameter("tel_1") + request.getParameter("tel_2") + request.getParameter("tel_3"); String addr= request.getParameter("addr"); MemberDTO dto = new MemberDTO(); dto.setName(name); dto.setId(id); dto.setPwd(pwd); dto.setGender(gender); dto.setEmail(email); dto.setDomain(domain); dto.setTel(phone); dto.setAddr(addr); MemberDAO dao = new MemberDAO(); int su = dao.modify(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=modifyR">
<%@page import="member.dao.MemberDAO"%>
<%@page import="member.dto.MemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("utf-8");
String name= request.getParameter("name");
String id= request.getParameter("id");
String pwd= request.getParameter("pwd");
String gender= request.getParameter("gender");
String email= request.getParameter("email");
String domain= request.getParameter("domain");
String phone= request.getParameter("tel_1") + request.getParameter("tel_2") + request.getParameter("tel_3");
String addr= request.getParameter("addr");

MemberDTO dto = new MemberDTO();
dto.setName(name);
dto.setId(id);
dto.setPwd(pwd);
dto.setGender(gender);
dto.setEmail(email);
dto.setDomain(domain);
dto.setTel(phone);
dto.setAddr(addr);

MemberDAO dao = new MemberDAO();
int su = dao.modify(dto);

request.setAttribute("su", su);
RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=modifyResult");
dispatcher.forward(request, response);
%>