public static void myPage(String id, Vector<Reserve> pre, Vector<Reserve> current) throws SQLException, NamingException, Exception{
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		DataSource ds = getDataSource();
		java.util.Date checkOut;
		java.util.Date currentDay = new java.util.Date();
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		try{
			conn = ds.getConnection();
			pstmt = conn
					.prepareStatement("select * from reserve where id = ?");
			pstmt.setString(1, id);
			rs = pstmt.executeQuery();
			while(rs.next()){
				checkOut = df.parse(rs.getString("check_out"));
				if (checkOut.getTime() < currentDay.getTime()) {
					Reserve temp = new Reserve(rs.getInt("r_num"),rs.getString("id"), rs.getString("pid"), rs.getString("check_in"),
							rs.getString("check_out"), rs.getInt("price"), rs.getInt("count"), rs.getString("writedate"));
					pre.add(temp);
					
				} else {
					Reserve temp = new Reserve(rs.getInt("r_num"),rs.getString("id"), rs.getString("pid"), rs.getString("check_in"),
							rs.getString("check_out"), rs.getInt("price"), rs.getInt("count"), rs.getString("writedate"));
					current.add(temp);
				}
			}
		}finally{
			if (rs != null)try {rs.close();} catch (SQLException e) {}
			if (pstmt != null)try {pstmt.close();} catch (SQLException e) {}
			if (conn != null)try {conn.close();} catch (SQLException e) {}
		}
	}