diff --git a/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp b/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp
index 650441d..6488748 100644
--- a/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp
+++ b/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp
@@ -20,7 +20,7 @@
">
">
">
- ">
+ ">
@@ -33,7 +33,7 @@
diff --git a/YACOSWeb/src/org/yacos/web/PCmember/controller/EvaluationController.java b/YACOSWeb/src/org/yacos/web/PCmember/controller/EvaluationController.java
index 208bab7..82dc774 100644
--- a/YACOSWeb/src/org/yacos/web/PCmember/controller/EvaluationController.java
+++ b/YACOSWeb/src/org/yacos/web/PCmember/controller/EvaluationController.java
@@ -117,16 +117,20 @@ public class EvaluationController extends SimpleFormController {
}
int idd=Integer.parseInt(id);
- /*System.out.println(idd);
- if (!listeRating.isEmpty()) { System.out.println("not empty liste");}
- System.out.println("current user is "+current.getLogin());*/
-
- //Report rpt =new Report(commentPCMember,commentAuthor,listeRating,current,article);
- Report rpt= evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
+
+ Report rpt= evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
request.getSession().setAttribute("report", rpt);
- //Map model1 = new HashMap();
- //model1.put("report", rpt);
- //return new ModelAndView(new RedirectView("createReport.htm"),model1);
+ //persister ratings dans la base apres avoir le id report.
+ System.out.println("lengthe is :"+listeRating.size());
+ for (Rating rt : listeRating)
+
+ {
+ System.out.println("value: "+rt.getValue());
+ System.out.println("cretertion: "+rt.getCriterion());
+ evaluationManager.addRating(rt.getValue(), rt.getCriterion(), rpt);
+ }
+
+
return new ModelAndView(new RedirectView("createReport.htm"));
}