From af7b73ac032002ce136acf7d3c2f66cf78d66643 Mon Sep 17 00:00:00 2001 From: Maxime Dagnicourt Date: Thu, 31 Jan 2008 16:17:14 +0000 Subject: [PATCH] Policy failures: Code warning - failed on resource DispatchArticleController.java. Reason: The import java.util.ArrayList is never used, line 3 - failed on resource DispatchArticleController.java. Reason: The import org.yacos.core.conferences.Conference is never used, line 16 - failed on resource DispatchArticleController.java. Reason: The local variable article is never read, line 7 Override reason: d --- YACOSWeb/WebContent/WEB-INF/jsp/dispatchArticle.jsp | 2 +- .../web/chairman/controller/DispatchArticleController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/YACOSWeb/WebContent/WEB-INF/jsp/dispatchArticle.jsp b/YACOSWeb/WebContent/WEB-INF/jsp/dispatchArticle.jsp index b42e5d5..bf59c69 100644 --- a/YACOSWeb/WebContent/WEB-INF/jsp/dispatchArticle.jsp +++ b/YACOSWeb/WebContent/WEB-INF/jsp/dispatchArticle.jsp @@ -14,7 +14,7 @@ +
main author: ${article.mainAuthor.firstName}{article.mainAuthor.lastName}
title : ${article.title}
theme: ${article.topic} -
author: ${article.mainAuthor}
download the article
diff --git a/YACOSWeb/src/org/yacos/web/chairman/controller/DispatchArticleController.java b/YACOSWeb/src/org/yacos/web/chairman/controller/DispatchArticleController.java index a2e1d6b..4e3ced9 100644 --- a/YACOSWeb/src/org/yacos/web/chairman/controller/DispatchArticleController.java +++ b/YACOSWeb/src/org/yacos/web/chairman/controller/DispatchArticleController.java @@ -68,12 +68,12 @@ public class DispatchArticleController extends SimpleFormController{ Object formDispatcher, BindException errors) throws Exception { //on recupere l'id de conference - Conference conf = (Conference)request.getSession().getAttribute("idCurrentConference"); + int conf_id = (Integer)request.getSession().getAttribute("idCurrentConference"); FormDispatcher fd = (FormDispatcher)formDispatcher; Article article = articleManager.getArticle(fd.getIdArticle()); - return new ModelAndView("dispatchArticle", "articles", articleManager.getArticles(conf.getId())); + return new ModelAndView("dispatchArticle", "articles", articleManager.getArticles(conf_id)); } }