-
1 minute read
STS (Spring Tool Suite) μ€μΉνκΈ° μ€μΉνκΈ° μ μ! βJDK 11β μΌλ‘ λ°κΏμ£Όμ!! Spring Tool Suite 3 μ λ§ν¬μμ λ€μ΄λ‘λ λ°κ±°λ μ΄ν΄λ¦½μ€ Help - Eclilpse Marketplace μμ μ€μΉνκΈ° 첫 λ²μ§Έ λ°©λ²μΌλ‘ λ€μ΄λ‘λ λ°λλ€λ©΄ sts-3.9.18.RELEASE ν΄λ μ STS.exeλ₯Ό μ€ννλ©΄ λλ€ μ€νλ§ νλ‘μ νΈ μμ±νκΈ° ctrl + N - Spring Legacy Project βΆ νλ‘μ νΈλͺ
μ
λ ₯...
Continue reading...
-
3 minute read
pack_Member/MemberMgr.java package pack_Member; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Vector; public class MemberMgr { private DBConnectionMgr pool; Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; String sql = null; public MemberMgr() { try { pool = DBConnectionMgr.getInstance(); } catch (Exception e) { System.out.println(e.getMessage()); } }...
Continue reading...
-
Less than 1 minute read
member/MemberInfo_Del.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <jsp:useBean id="memberMgr" class="pack_Member.MemberMgr" /> <% String uId = (String)session.getAttribute("idKey"); boolean res = memberMgr.deleteMember(uId); if (res){ session.invalidate(); } %> <script> alert("νν΄κ° μ μμ μΌλ‘ μ²λ¦¬λμμ΅λλ€. \nνμΈ λ²νΌμ λλ₯΄λ©΄ λ©μΈνμ΄μ§λ‘ μ΄λν©λλ€."); location.href="../Index.jsp"; </script> pack_Member/MemberMgr.java package pack_Member; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; public class MemberMgr { private...
Continue reading...
-
4 minute read
member/MemberInfo_Mod.jsp <%@page import="pack_Member.MemberBean"%> <%@page import="java.util.Vector"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <jsp:useBean id="memberMgr" class="pack_Member.MemberMgr" scope="page" /> <% String sessionUId = (String)session.getAttribute("idKey"); Vector<MemberBean> vlist = memberMgr.modifyMember(sessionUId); %> <% if (sessionUId != null) { MemberBean memberBean = (MemberBean)vlist.get(0); String uId = memberBean.getuId(); String uPw = memberBean.getuPw(); String uName = memberBean.getuName(); String uEmail...
Continue reading...
-
1 minute read
member/Login.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("UTF-8"); String uId = (String)session.getAttribute("idKey"); %> <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>λ‘κ·ΈμΈ νμ΄μ§</title> <link rel="stylesheet" href=""> </head> <body> <% if (uId != null) { %> <!-- νμ¬ λ‘κ·ΈμΈ μνλΌλ©΄ --> <h2><%=uId %>λ νμν©λλ€.</h2>...
Continue reading...