1 21 22 package org.objectweb.jonas.webapp.jonasadmin.joramplatform; 23 24 import java.io.IOException ; 25 26 import javax.servlet.ServletException ; 27 import javax.servlet.http.HttpServletRequest ; 28 import javax.servlet.http.HttpServletResponse ; 29 30 import org.apache.struts.action.ActionForm; 31 import org.apache.struts.action.ActionForward; 32 import org.apache.struts.action.ActionMapping; 33 34 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 35 36 39 40 public class EditJoramRemoteServerAction extends EditJoramBaseAction { 41 42 44 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 45 , HttpServletRequest p_Request, HttpServletResponse p_Response) 46 throws IOException , ServletException { 47 48 String id = p_Request.getParameter("id"); 49 if (id == null) { 50 id = (String ) m_Session.getAttribute("remoteServerId"); 51 } 52 53 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_DOMAIN) + WhereAreYou.NODE_SEPARATOR 55 + "joramplatform" + WhereAreYou.NODE_SEPARATOR 56 + "joramremoteserver" + id, true); 57 58 JoramRemoteServerForm o_Form = (JoramRemoteServerForm) p_Form; 60 61 try { 62 o_Form.setServerId(id); 65 66 m_Session.setAttribute("remoteServerId", id); 67 } catch (Throwable t) { 68 return (treatError(t, p_Mapping, p_Request)); 69 } 70 71 return (p_Mapping.findForward("JoramRemoteServer")); 73 } 74 75 } 76 | Popular Tags |