<%@page import="member.dao.MemberDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String id = (String) session.getAttribute("memberId"); // 현재 접속된 회원정보 가져오기 MemberDAO dao = new MemberDAO(); MemberDTO dto = dao.search(id); String name = dto.getName(); String pwd = dto.getPwd(); String gender = dto.getGender(); String email = dto.getEmail(); String domain = dto.getDomain(); String tel = dto.getTel(); String tel_1 = tel.substring(0,3); String tel_2 = tel.substring(3,7); String tel_3 = tel.substring(7); String addr = dto.getAddr(); request.setAttribute("name", name); request.setAttribute("id", id); request.setAttribute("pwd", pwd); request.setAttribute("gender", gender); request.setAttribute("email", email); request.setAttribute("domain", domain); request.setAttribute("tel_1", tel_1); request.setAttribute("tel_2", tel_2); request.setAttribute("tel_3", tel_3); request.setAttribute("addr", addr); "> <%@page import="member.dao.MemberDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String id = (String) session.getAttribute("memberId"); // 현재 접속된 회원정보 가져오기 MemberDAO dao = new MemberDAO(); MemberDTO dto = dao.search(id); String name = dto.getName(); String pwd = dto.getPwd(); String gender = dto.getGender(); String email = dto.getEmail(); String domain = dto.getDomain(); String tel = dto.getTel(); String tel_1 = tel.substring(0,3); String tel_2 = tel.substring(3,7); String tel_3 = tel.substring(7); String addr = dto.getAddr(); request.setAttribute("name", name); request.setAttribute("id", id); request.setAttribute("pwd", pwd); request.setAttribute("gender", gender); request.setAttribute("email", email); request.setAttribute("domain", domain); request.setAttribute("tel_1", tel_1); request.setAttribute("tel_2", tel_2); request.setAttribute("tel_3", tel_3); request.setAttribute("addr", addr); "> <%@page import="member.dao.MemberDAO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String id = (String) session.getAttribute("memberId"); // 현재 접속된 회원정보 가져오기 MemberDAO dao = new MemberDAO(); MemberDTO dto = dao.search(id); String name = dto.getName(); String pwd = dto.getPwd(); String gender = dto.getGender(); String email = dto.getEmail(); String domain = dto.getDomain(); String tel = dto.getTel(); String tel_1 = tel.substring(0,3); String tel_2 = tel.substring(3,7); String tel_3 = tel.substring(7); String addr = dto.getAddr(); request.setAttribute("name", name); request.setAttribute("id", id); request.setAttribute("pwd", pwd); request.setAttribute("gender", gender); request.setAttribute("email", email); request.setAttribute("domain", domain); request.setAttribute("tel_1", tel_1); request.setAttribute("tel_2", tel_2); request.setAttribute("tel_3", tel_3); request.setAttribute("addr", addr); ">
<%@page import="member.dto.MemberDTO"%>
<%@page import="member.dao.MemberDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String id = (String) session.getAttribute("memberId");

// 현재 접속된 회원정보 가져오기
MemberDAO dao = new MemberDAO();
MemberDTO dto = dao.search(id);

String name = dto.getName();
String pwd = dto.getPwd();
String gender = dto.getGender();
String email = dto.getEmail();
String domain = dto.getDomain();
String tel = dto.getTel();
String tel_1 = tel.substring(0,3);
String tel_2 = tel.substring(3,7);
String tel_3 = tel.substring(7);
String addr = dto.getAddr();

request.setAttribute("name", name);
request.setAttribute("id", id);
request.setAttribute("pwd", pwd);
request.setAttribute("gender", gender);
request.setAttribute("email", email);
request.setAttribute("domain", domain);
request.setAttribute("tel_1", tel_1);
request.setAttribute("tel_2", tel_2);
request.setAttribute("tel_3", tel_3);
request.setAttribute("addr", addr);

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