1 package org.nextime.ion.backoffice.action.workflow; 2 3 import java.io.IOException ; 4 import java.util.Hashtable ; 5 import javax.servlet.ServletException ; 6 import javax.servlet.http.HttpServletRequest ; 7 import javax.servlet.http.HttpServletResponse ; 8 import org.apache.struts.action.ActionForm; 9 import org.apache.struts.action.ActionForward; 10 import org.apache.struts.action.ActionMapping; 11 12 import org.nextime.ion.backoffice.action.BaseAction; 13 14 public class CommentaireAction extends BaseAction { 15 16 public ActionForward perform( 17 ActionMapping mapping, 18 ActionForm form, 19 HttpServletRequest request, 20 HttpServletResponse response) 21 throws IOException , ServletException { 22 23 checkUser(request); 25 26 if (request.getParameter("commentaire") != null) { 28 Hashtable inputs = new Hashtable (); 29 inputs.put("commentaire", request.getParameter("commentaire")); 30 request.setAttribute("inputs", inputs); 31 request.setAttribute("id", request.getParameter("id")); 32 request.setAttribute("version", request.getParameter("version")); 33 request.setAttribute("action", request.getParameter("action")); 34 return (mapping.findForward("actions")); 35 } 36 37 return (mapping.findForward("view")); 39 40 } 41 42 } 43 | Popular Tags |