1 25 26 package org.objectweb.jonas.webapp.jonasadmin.service.container; 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 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 40 41 44 public class ApplyWebContainersAction extends JonasBaseAction { 45 46 47 49 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 50 , HttpServletRequest p_Request, HttpServletResponse p_Response) 51 throws IOException , ServletException { 52 53 SelectedItemsForm oForm = (SelectedItemsForm) p_Form; 55 56 try { 58 59 ArrayList alSelected = new ArrayList (); 61 for (int i=0; i < oForm.getCheckedItems().length; i++) { 62 alSelected.add(new WebAppItem(new ObjectName (oForm.getCheckedItems()[i]))); 64 } 65 m_Session.setAttribute("listWebContainersSelected", alSelected); 66 } 67 catch (Throwable t) { 68 addGlobalError(t); 69 saveErrors(p_Request, m_Errors); 70 return (p_Mapping.findForward("Global Error")); 71 } 72 73 return p_Mapping.findForward("Web Containers Confirm"); 75 } 76 } 77 | Popular Tags |