1)DAO 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 //글 개수 구하기 public int getArticleCount() throws Exception { //예외발생한 경우 jvm에 던진다. Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; int x = 0; //행의 개수 try { conn = getConnection(); pstmt = conn.prepareStatement("select count(*) from board"); rs = pstmt.executeQuery(); if(rs.next()) { x = ..