Service
[JSP & Servlet] 회원 관리 - Service / DAO
📌회원가입 요청 비즈니스 로직 처리 MemberJoinService.java package service; import vo.MemberBean; import static db.JdbcUtil.*; import java.sql.Connection; import dao.MemberDAO; public class MemberJoinService { public boolean joinMember(MemberBean member) { boolean joinSuccess = false; //회원 가입 성공 여부 MemberDAO memberDAO = MemberDAO.getInstance(); Connection con = getConnection(); memberDAO.setConnection(con); int..
[JSP & Servlet] 로그인 (feat. 세션 & 쿠키) - controller / service
📌로그인 컨트롤러 LoginServlet.java package controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impor..