for(int i=0;i<prodic.size();i++){
Dictionary dic = prodic.get(i);
Province pro = new Province();
pro.setCode(dic.getCODE());
pro.setName(dic.getDETAIL());
List<Dictionary> citydics = dao.listByKindAndCode(dic.getKIND(), dic.getCODE());
List<City> citys = initCitys(citydics);
pro.setCitys(citys);
pros.add(pro);
}
appcontext.setAttribute("provinces",pros);