public int updateArticle(BoardDataBean article) throws Exception {
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs= null;

		String dbpasswd="";
		String sql="";
		int x=-1;
		try {
			conn = getConnection();

			pstmt = conn.prepareStatement("select passwd from board where num = ?");	//	public int updateArticle(BoardDataBean article) throws Exception {
			pstmt.setInt(1, article.getNum());
			rs = pstmt.executeQuery();

			if(rs.next()){
				dbpasswd= rs.getString("passwd");
				if(dbpasswd.equals(article.getPasswd())){
					pstmt = conn.prepareStatement("update board set writer=?,email=?,subject=?,passwd=?,content=? where num=?");	//	public int updateArticle(BoardDataBean article) throws Exception {
					pstmt.setString(1, article.getWriter());
					pstmt.setString(2, article.getEmail());
					pstmt.setString(3, article.getSubject());
					pstmt.setString(4, article.getPasswd());
					pstmt.setString(5, article.getContent());
					pstmt.setInt(6, article.getNum());
					pstmt.executeUpdate();
					x= 1;
				}else{
					x= 0;
				}
			}	//	rs.next()
		} catch(Exception ex) {
			ex.printStackTrace();
		} finally {
			if (rs != null) try { rs.close(); } catch(SQLException ex) {}
			if (pstmt != null) try { pstmt.close(); } catch(SQLException ex) {}
			if (conn != null) try { conn.close(); } catch(SQLException ex) {}
		}
		return x;
	}	//	int updateArticle(BoardDataBean article)