addReport ca marche

Policy failures:   
Code warning
- failed on resource EvaluationController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 103
- failed on resource EvaluationController.java. Reason: Type safety: The expression of type ArrayList needs unchecked conversion to conform to List<Rating>, line 10
Override reason:
This commit is contained in:
Jialin Wang
2008-02-05 10:22:05 +00:00
parent efa973e594
commit 1e205614de

View File

@@ -129,8 +129,8 @@ public class EvaluationController extends SimpleFormController {
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);
// evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
//Report rpt =new Report(commentPCMember,commentAuthor,listeRating,current,article);
Report rpt= evaluationManager.addReport(idd, commentPCMember, commentAuthor, listeRating, current.getLogin());
request.getSession().setAttribute("report", rpt);
//Map<String, Report> model1 = new HashMap<String, Report>();
//model1.put("report", rpt);