1 25 26 package org.objectweb.jonas.webapp.jonasadmin.logging; 27 28 import java.io.IOException ; 29 import java.util.ArrayList ; 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 import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx; 39 import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction; 40 import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou; 41 42 45 46 public class ListLoggersAction extends JonasBaseAction { 47 48 50 public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form 51 , HttpServletRequest p_Request, HttpServletResponse p_Response) 52 throws IOException , ServletException { 53 54 m_WhereAreYou.selectNameNode(getTreeBranchName(DEPTH_SERVER) + WhereAreYou.NODE_SEPARATOR 56 + "logging", true); 57 58 try { 60 ArrayList al = JonasAdminJmx.getLoggers(m_Resources, m_WhereAreYou, false); 62 p_Request.setAttribute("listLoggers", al); 64 m_Session.removeAttribute("itemsLoggersForm"); 66 m_Session.removeAttribute("catalinaAccessLoggerForm"); 67 } 68 catch (Throwable t) { 69 addGlobalError(t); 70 saveErrors(p_Request, m_Errors); 71 return (p_Mapping.findForward("Global Error")); 72 } 73 return (p_Mapping.findForward("Loggers")); 75 } 76 77 } 78 | Popular Tags |