I want to get the DAO list values in controller.like my list contain 10 values i want all the 10 values in controller in 10 separate object or variable.`public List getcountrydata() throws Exception {
    conn = connectionDB.getConnection();
    Statement stmt = conn.createStatement();
    List<wrapper> list = new ArrayList<wrapper>();
    list.clear();
    ResultSet rs1 = stmt.executeQuery("select * from country ORDER BY country_code ASC");
    while (rs1.next()) {
        wrapper obj1 = new wrapper();
        obj1.setCountry_name(rs1.getString("country_name"));
        obj1.setCountry_id(rs1.getInt("country_id"));
        list.add(obj1);
    }
    return list;
}`
From the above code I want to get the country_name and country_id in controller in separate variable like, String country_name=country_name; int country_id=country_id;
 
     
    