1 26 27 package org.objectweb.jonas.webapp.jonasadmin.security; 28 29 import java.io.IOException ; 30 31 import javax.servlet.ServletException ; 32 import javax.servlet.http.HttpServletRequest ; 33 import javax.servlet.http.HttpServletResponse ; 34 35 import org.apache.struts.action.ActionForm; 36 import org.apache.struts.action.ActionForward; 37 import org.apache.struts.action.ActionMapping; 38 39 42 43 public class EditNewRoleMemoryRealmAction extends BaseMemoryRealmAction { 44 45 47 49 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 50 , HttpServletRequest p_Request, HttpServletResponse p_Response) 51 throws IOException , ServletException { 52 53 MemoryRealmForm oRealmForm = getForm(p_Mapping, p_Request); 55 56 RoleMemoryRealmForm oForm = new RoleMemoryRealmForm(); 58 m_Session.setAttribute("roleMemoryRealmForm", oForm); 59 oForm.reset(p_Mapping, p_Request); 60 oForm.setAction("create"); 62 63 try { 65 populateRoleForm(oRealmForm, oForm, null); 66 } 67 catch (Throwable t) { 68 addGlobalError(t); 69 saveErrors(p_Request, m_Errors); 70 return (p_Mapping.findForward("Global Error")); 71 } 72 return (p_Mapping.findForward("Role Memory Realm")); 74 } 75 76 78 } 79 | Popular Tags |