1 26 27 package org.objectweb.jonas.webapp.jonasadmin.security; 28 29 import java.io.IOException ; 30 import java.util.ArrayList ; 31 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.JonasAdminJmx; 40 41 44 45 public class EditMemoryRealmUsersAction extends BaseMemoryRealmAction { 46 47 49 51 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 52 , HttpServletRequest p_Request, HttpServletResponse p_Response) 53 throws IOException , ServletException { 54 55 MemoryRealmForm oForm = getForm(p_Mapping, p_Request); 57 removeItemsMemoryRealmForm("user"); 59 60 try { 62 ArrayList al = JonasAdminJmx.getUsers(oForm.getResource()); 63 p_Request.setAttribute("listUsers", al); 64 } 65 catch (Throwable t) { 66 addGlobalError(t); 67 saveErrors(p_Request, m_Errors); 68 return (p_Mapping.findForward("Global Error")); 69 } 70 return (p_Mapping.findForward("Memory Realm Users")); 72 } 73 74 76 } 77 | Popular Tags |