List<Float> sarciniL = compresibilitateDao.geSarciniByIDProba(proba.getIdProba());
setSarcini(sarciniL);
ICompresiuneDao compresiuneDao = new CompresiuneDao();
List<Compresiune> compresiuni = compresiuneDao.geCompresiuneByIDProba(proba.getIdProba());
CompresiuneTabel compTabel = new CompresiuneTabel();
if (compresiuni.size() != 0) {
List<String> sigmaList = new ArrayList<String>();
Iterator it = compresiuni.iterator();
while (it.hasNext()) {
sigmaList.add(((Compresiune) it.next()).getSigma());
}
compTabel.setC1(sigmaList);
compTabel.setC2(formulaCompresiuneCol2(sigmaList, proba.getIdProba()));
compTabel.setC3(formulaCompresiuneCol3(sigmaList, proba.getIdProba()));
compTabel.setC4(formulaCompresiuneCol4(sigmaList, proba.getIdProba()));
compTabel.setC5(formulaCompresiuneCol5(sigmaList, proba.getIdProba()));
compTabel.setC6(formulaCompresiuneCol6(sigmaList, proba.getIdProba()));
compTabel.setC7(formulaCompresiuneCol7(sigmaList, proba.getIdProba()));
compTabel.setC8(formulaCompresiuneCol8(sigmaList, proba.getIdProba()));
compTabel.setC9(formulaCompresiuneCol9(sigmaList, proba.getIdProba()));
compTabel.setC10(formulaCompresiuneCol10(sigmaList, proba.getIdProba()));
}
getContext().getRequest().getSession(true).setAttribute("compresiune", compTabel);
return new ForwardResolution("/WEB-INF/jsp/compresiune.jsp");
}