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 39 import org.objectweb.jonas.jmx.J2eeObjectName; 40 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 41 42 45 46 public class EditWebAppCatalinaAction extends BaseWebAppAction { 47 48 public ActionForward executeAction(ActionMapping pMapping, ActionForm pForm 49 , HttpServletRequest pRequest, HttpServletResponse pResponse) 50 throws IOException , ServletException { 51 52 boolean bPopulate = initialize(pMapping, pRequest); 54 55 try { 56 if (mWebAppForm != null && mWebAppForm.getObjectName() != null) { 58 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) 59 + WhereAreYou.NODE_SEPARATOR + "services" + WhereAreYou.NODE_SEPARATOR + "web" 60 + WhereAreYou.NODE_SEPARATOR + mWebAppForm.getObjectName(), true); 61 } 62 63 if (bPopulate) { 65 populateWebAppCatalina(mWebAppForm.getObjectName() 67 , (WebAppCatalinaForm) mWebAppForm); 68 ObjectName on = J2eeObjectName.getObjectName(mWebAppForm.getObjectName()); 72 if (on != null) { 73 mWarForm = createWarForm(pMapping, pRequest); 75 populateWar(on, mWarForm); 76 } 77 } 78 } catch (Throwable t) { 79 addGlobalError(t); 80 saveErrors(pRequest, m_Errors); 81 return (pMapping.findForward("Global Error")); 82 } 83 return (pMapping.findForward("WebApp Catalina")); 85 } 86 87 } 88 | Popular Tags |