1 25 26 package org.objectweb.jonas.webapp.jonasadmin.deploy; 27 28 import java.util.ArrayList ; 29 30 import javax.servlet.ServletException ; 31 import javax.servlet.http.HttpServletRequest ; 32 import javax.servlet.http.HttpServletResponse ; 33 34 import org.apache.struts.action.ActionForm; 35 import org.apache.struts.action.ActionForward; 36 import org.apache.struts.action.ActionMapping; 37 38 41 42 public class EditRemoveAction extends BaseDeployAction { 43 44 53 public ActionForward executeAction(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, 54 HttpServletResponse response) throws ServletException { 55 56 String forward = "Remove"; 57 58 RemoveForm removeForm = (RemoveForm) actionForm; 60 try { 61 setCurrentJonasDeployment(request); 63 ArrayList alRemovable = getListDeployableFiles(); 65 removeForm.setListRemovable(alRemovable); 67 68 RemoveForm rForm = (RemoveForm) actionForm; 69 rForm.setIsDomain(isDomain()); 70 71 72 } catch (Throwable t) { 73 addGlobalError(t); 74 saveErrors(request, m_Errors); 75 return (actionMapping.findForward("Global Error")); 76 } 77 return (actionMapping.findForward(forward)); 79 } 80 81 } 82 | Popular Tags |