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
This commit is contained in:
Maxime Dagnicourt
2008-01-31 16:17:14 +00:00
parent 7f3cb29c6a
commit af7b73ac03
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
<table>
<tr><td>title : ${article.title}
<br/> theme: ${article.topic}
<br/> author: ${article.mainAuthor}</td>
<br/> main author: ${article.mainAuthor.firstName}{article.mainAuthor.lastName}</td>
<td><a href="${article.URL_article}">download the article</a></td>
</tr>
</table>

View File

@@ -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));
}
}