EditJoramPlatformAction.java

00001 
00022 package org.objectweb.jonas.webapp.jonasadmin.joramplatform;
00023 
00024 import javax.management.ObjectName;
00025 import javax.servlet.http.HttpServletRequest;
00026 import javax.servlet.http.HttpServletResponse;
00027 
00028 import org.apache.struts.action.ActionForm;
00029 import org.apache.struts.action.ActionForward;
00030 import org.apache.struts.action.ActionMapping;
00031 
00032 import org.objectweb.jonas.jmx.JonasObjectName;
00033 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou;
00034 
00039 public class EditJoramPlatformAction extends EditJoramBaseAction {
00040 
00041 // --------------------------------------------------------- Public Methods
00042 
00043     public ActionForward executeAction(ActionMapping pMapping, ActionForm pForm
00044         , HttpServletRequest pRequest, HttpServletResponse pResponse) {
00045 
00046         // Force the node selected in tree
00047         m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_DOMAIN) + WhereAreYou.NODE_SEPARATOR
00048             + "joramplatform", true);
00049 
00050         // Form used
00051         JoramPlatformForm oForm = (JoramPlatformForm) pForm;
00052         try {
00053             // Object name used       
00054             ObjectName oObjectName = JonasObjectName.joramLocalServer();
00055             oForm.setRelease(getStringAttribute(oObjectName, "Release"));
00056             oForm.setConfiguration(getStringAttribute(oObjectName, "PlatformConfiguration"));
00057         } catch (Throwable t) {
00058             return (treatError(t, pMapping, pRequest));
00059         }
00060 
00061         // Forward to the jsp.
00062         return (pMapping.findForward("JoramPlatform"));
00063     }
00064 
00065 }

Generated on Tue Feb 15 15:05:27 2005 for JOnAS by  doxygen 1.3.9.1