1 25 26 package org.objectweb.jonas.webapp.jonasadmin.catalina; 27 28 import java.io.IOException ; 29 import java.util.ArrayList ; 30 31 import javax.management.ObjectName ; 32 import javax.servlet.ServletException ; 33 import javax.servlet.http.HttpServletRequest ; 34 import javax.servlet.http.HttpServletResponse ; 35 36 import org.apache.struts.action.ActionForm; 37 import org.apache.struts.action.ActionForward; 38 import org.apache.struts.action.ActionMapping; 39 40 43 public class ApplyConnectorsAction extends CatalinaBaseAction { 44 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 ItemsConnectorsForm oForm = (ItemsConnectorsForm) p_Form; 54 55 try { 57 58 ArrayList alSelected = new ArrayList (); 60 for (int i=0; i < oForm.getSelectedItems().length; i++) { 61 alSelected.add(new ConnectorItem(new ObjectName (oForm.getSelectedItems()[i]),0)); 62 } 63 m_Session.setAttribute("listConnectorsSelected", alSelected); 64 } 65 catch (Throwable t) { 66 addGlobalError(t); 67 saveErrors(p_Request, m_Errors); 68 return (p_Mapping.findForward("Global Error")); 69 } 70 71 return p_Mapping.findForward("Catalina Connectors Confirm"); 73 } 74 } 75 | Popular Tags |