List dList = diameterManager.getListDiameter(page);
List diameterList = new ArrayList();
for (int i = 0; i < dList.size(); i++) {
DiameterHelper diameterHelper = new DiameterHelper();
Diameter diameter = (Diameter) dList.get(i);
diameterHelper.setDiametrCount(diameter.getDiametrCount());
diameterHelper.setDiametrId(diameter.getDiametrId());
diameterHelper.setGost(diameter.getGost());
diameterHelper.setThicknessList(diameter.getThicknessList());
diameterHelper.setThCount(Integer.valueOf(diameter.getThicknessList().size()));
diameterList.add(diameterHelper);
}
mav.addObject("result", result);
mav.addObject("diameter", diameterList);