From d83eff761494c895e627d6e4851076806d2aa7ba Mon Sep 17 00:00:00 2001 From: Jialin Wang Date: Sun, 17 Feb 2008 23:25:53 +0000 Subject: [PATCH] debut du TableauBord Policy failures: Code warning - failed on resource TableBordController.java. Reason: The import org.yacos.web.system.session.SessionService is never used, line 1 Override reason: --- .../WEB-INF/classes/messages.properties | 4 + YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp | 89 +++++++++++++++++++ YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml | 6 ++ .../controller/TableBordController.java | 34 +++++++ 4 files changed, 133 insertions(+) create mode 100644 YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp create mode 100644 YACOSWeb/src/org/yacos/web/system/controller/TableBordController.java diff --git a/YACOSWeb/WebContent/WEB-INF/classes/messages.properties b/YACOSWeb/WebContent/WEB-INF/classes/messages.properties index c493037..0502f62 100644 --- a/YACOSWeb/WebContent/WEB-INF/classes/messages.properties +++ b/YACOSWeb/WebContent/WEB-INF/classes/messages.properties @@ -249,3 +249,7 @@ report.referee=Evaluated by #detail d'un article detail.title=Article's detail +#tableau de bord +tableBord.state=Consult article's state +tableBord.manage=Consult list of my articles and modify them + diff --git a/YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp b/YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp new file mode 100644 index 0000000..fe8cff0 --- /dev/null +++ b/YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp @@ -0,0 +1,89 @@ +<%@ include file="/WEB-INF/decorators/include.jsp"%> + + + + + + + +
+ + + + + + + +
+

+ + +
+
+ + + +
+

+ + +
+
+ + + +
+

+ + +
+
+ + + +
+

+ + +
+
+ + + +
+

+ + +
+
+ +
+ + +
+ + + \ No newline at end of file diff --git a/YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml b/YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml index 1af4e12..055eb45 100644 --- a/YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml +++ b/YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml @@ -44,6 +44,7 @@ ListReportController ForgotPasswordController DetailArticleController + TableBordController @@ -112,6 +113,11 @@ + + + + diff --git a/YACOSWeb/src/org/yacos/web/system/controller/TableBordController.java b/YACOSWeb/src/org/yacos/web/system/controller/TableBordController.java new file mode 100644 index 0000000..d08bd6d --- /dev/null +++ b/YACOSWeb/src/org/yacos/web/system/controller/TableBordController.java @@ -0,0 +1,34 @@ +package org.yacos.web.system.controller; +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.web.servlet.ModelAndView; +import org.springframework.web.servlet.mvc.SimpleFormController; +import org.yacos.web.system.controller.NoConferenceSelectedException; +import org.yacos.web.system.session.SessionService; + +public class TableBordController extends SimpleFormController { + + protected final Log logger = LogFactory.getLog(getClass()); + + + + public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException, NoConferenceSelectedException { + + logger.info("Returning TableBord view"); + + + /*String confID=SessionService.getInstance().getCurrentConferenceId().toString(); + + + getServletContext().setAttribute("confID", confID); +*/ + return new ModelAndView("tableBord"); + } + + +} \ No newline at end of file