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:
@@ -14,7 +14,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr><td>title : ${article.title}
|
<tr><td>title : ${article.title}
|
||||||
<br/> theme: ${article.topic}
|
<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>
|
<td><a href="${article.URL_article}">download the article</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -68,12 +68,12 @@ public class DispatchArticleController extends SimpleFormController{
|
|||||||
Object formDispatcher, BindException errors) throws Exception {
|
Object formDispatcher, BindException errors) throws Exception {
|
||||||
|
|
||||||
//on recupere l'id de conference
|
//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;
|
FormDispatcher fd = (FormDispatcher)formDispatcher;
|
||||||
Article article = articleManager.getArticle(fd.getIdArticle());
|
Article article = articleManager.getArticle(fd.getIdArticle());
|
||||||
|
|
||||||
return new ModelAndView("dispatchArticle", "articles", articleManager.getArticles(conf.getId()));
|
return new ModelAndView("dispatchArticle", "articles", articleManager.getArticles(conf_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user