public BoardFileBean getFileName(int idx) throws Exception{
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		BoardFileBean fileBean = null;
		String sql = "";
		String filename = "";
		String fileTmp = "";
		try{
			conn = getConnection();
			sql = "select * from boardfile where idx=?";
			pstmt = conn.prepareStatement(sql);
			pstmt.setInt(1, idx);
			rs = pstmt.executeQuery();
			fileBean = new BoardFileBean();
			if(rs.next()){
				fileBean.setFileid(rs.getInt("fileid"));
				fileTmp = rs.getString("filename");
				StringTokenizer st = new StringTokenizer(fileTmp,"\\");
				while(st.hasMoreElements()){
					filename=st.nextToken();
				}
				fileBean.setFilename(filename);
				fileBean.setRealpath("upload/"+filename);
			}else{
				fileBean.setFilename("파일없음");
				fileBean.setRealpath("파일없음");
			}
		}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 fileBean;
	}