package util; import java.sql.*; import java.util.*; public class DBUtil { private static String driver, url, user, pass; //๋ณดํต ์ด๋ฐ ์ ๋ณด๋ค์ ํ๋ฒ ์ฝ์ผ๋ฉด ์์ฃผ๋ณ๊ฒฝ๋์ง๋ ์๋๋ค. //์ด๋ด๊ฒฝ์ฐ ํ๋ฒ ์ฝ์ด์ ๊ณ์ ์ฌํจใ ใน์ฉ ๋ผํ ์ ์๊ฒ ๋ค. // ํ๋ฒ ์ฝ์ด์ ์ญ~ ์ด๋ฐ์์ ์ด ์๋ค๋ฉด // static ํค์๋๋ฅผ ๋ ์ฌ๋ฆฌ์. static { loadInfo(); driverLoading(); } private static void loadInfo() { // TODO Auto-generated method stub try { // Properties props; // File file = new File(System...
package member; import java.sql.Timestamp; public class MemberBean { private int idx ; private String id ; private String pwd ; private String name ; private String jumin1 ; private String jumin2 ; private String email ; private String zip1 ; private String zip2 ; private String addr ; private Timestamp joindate ; public int getIdx() { return idx; } public void setIdx(int idx) { this.idx = idx; ..
package member; import java.sql.*; import java.util.ArrayList; import java.util.Collection; import java.util.List; import util.DBUtil; public class MemberMgr { //ํ์์ ๋ณด ์ ๋ ฅํ๋ ๋ฉ์๋ public void insertMember(MemberBean bean) throws SQLException { //jdbc ์ค๋น Connection conn = null; PreparedStatement pstmt = null; //jdbc 1,2 try { conn = DBUtil.getConnection(); } catch (SQLException e) { // TODO Auto-gene..
package member; import java.sql.*; import util.DBUtil; public class MemberMgr { //ํ์์ ๋ณด ์ ๋ ฅํ๋ ๋ฉ์๋ public void insertMember(MemberBean bean) throws SQLException { //jdbc ์ค๋น Connection conn = null; PreparedStatement pstmt = null; //jdbc 1,2 try { conn = DBUtil.getConnection(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } //jdbc 3 StringBuilder sql = new String..
########################### ์๋ MemberBean ############################# package member; import java.sql.Date; public class MemberBean { private int idx ; private String id ; private String pwd ; private String name ; private String jumin1 ; private String jumin2 ; private String email ; private String zip1 ; private String zip2 ; private String addr ; private Date joindate ; public int getIdx() ..
package listener; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; /** * Application Lifecycle Listener implemen..
- Total
- Today
- Yesterday
- ๊ธฐํ
- JSON
- JS
- ์ธํจ์ด
- ์์์ฌ์ด๋
- asp
- MySQL
- ๋ฉ๋ฐฐํ
- 2ne1
- JSTL
- 8๋ง์ผ
- ์๋ธ๋ฆฟ
- ๋ณต๊ทผ์ด๋
- ํจ์
- Ajax
- ๊ฒฝ์ ์ฉ์ด
- php
- ์น์์ด์ ์
- Servlet
- I Don't Care
- ๋ด๋๋ด์ฐ
- JSP
- ์นด๋ฐ์จ๋ผ์ธ
- ์๋ฐ์คํฌ๋ฆฝํธ
- EL
- ๋์ค
- JavaScript
- ์๋ฆฌ
- Java
- jQuery
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |