%@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); %>
<%@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);
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>modify.jsp</title>
<style type="text/css">
p {
font-size: 24px;
}
</style>
</head>
<body>
<h1>회원정보 수정 확인</h1>
<br><br>
<p>
<%if(su > 0) {%>
회원정보 수정 성공...
<%} else { %>
회원정보 수정 실패...
<%} %>
</p>
<br><br>
<input type="button" value="main" onclick="location.href='../index.jsp'"/>
</body>
</html>