View Javadoc
1 /* 2 * Demosys. 3 * 4 * Terms of license - http://opensource.org/licenses/apachepl.php 5 */ 6 package org.demosys.web.project.action; 7 import javax.servlet.http.HttpServletRequest; 8 import javax.servlet.http.HttpServletResponse; 9 import org.apache.struts.action.Action; 10 import org.apache.struts.action.ActionForm; 11 import org.apache.struts.action.ActionForward; 12 import org.apache.struts.action.ActionMapping; 13 import org.demosys.web.ServiceLocator; 14 import org.demosys.web.project.CreateProjectException; 15 /*** 16 * Action pour la création d'un projet 17 * 18 * @author ABOUELF 19 * 20 * @deprecated 11 avril 2003 21 */ 22 public class NewProjectAction extends Action { 23 public ActionForward execute(ActionMapping mapping, ActionForm objForm, 24 HttpServletRequest req, HttpServletResponse res) { 25 NewProjectForm form = (NewProjectForm)objForm; 26 27 String result = null; 28 29 try { 30 ServiceLocator.getServiceLocator().getProjectService().newProject(form 31 .toProjectView()); 32 result = "success"; 33 } 34 catch (CreateProjectException e) { 35 e.printStackTrace(); 36 result = "failure"; 37 } 38 39 return mapping.findForward(result); 40 } 41 }

This page was automatically generated by Maven