public void BoardReplyAction(BoardVO bVo) { String sql = "update qna set anwser=? where num=?"; try { conn = getConnection(); pstmt = conn.prepareStatement(sql); pstmt.setString(1, bVo.getAnwser()); pstmt.setInt(2, bVo.getNum()); pstmt.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { CloseUtil.close(pstmt); CloseUtil.close(conn); } }