1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.container; 27 28 import java.io.IOException ; 29 30 import javax.management.ObjectName ; 31 import javax.servlet.ServletException ; 32 import javax.servlet.http.HttpServletRequest ; 33 import javax.servlet.http.HttpServletResponse ; 34 35 import org.apache.struts.action.ActionForm; 36 import org.apache.struts.action.ActionForward; 37 import org.apache.struts.action.ActionMapping; 38 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 39 40 43 44 public class EditWarAction extends BaseWebAppAction { 45 46 48 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 49 , HttpServletRequest p_Request, HttpServletResponse p_Response) 50 throws IOException , ServletException { 51 52 boolean bPopulate = initialize(p_Mapping, p_Request); 54 55 try { 56 if (bPopulate == true) { 58 populateWar(mWarForm.getPath(), mWarForm); 60 ObjectName onWebApp = findWebAppMbean(mWarForm.getContextRoot()); 62 mWebAppForm = createWebAppForm(p_Mapping, p_Request); 64 populateWebApp(onWebApp.toString(), mWebAppForm); 65 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) 67 + WhereAreYou.NODE_SEPARATOR + "services" + WhereAreYou.NODE_SEPARATOR + "web" 68 + WhereAreYou.NODE_SEPARATOR + mWebAppForm.getObjectName(), true); 69 } 70 } 71 catch (Throwable t) { 72 addGlobalError(t); 73 saveErrors(p_Request, m_Errors); 74 return (p_Mapping.findForward("Global Error")); 75 } 76 return (p_Mapping.findForward("War")); 78 } 79 } 80 | Popular Tags |