private void displayMBeans ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { Iterator mbeans ; try { mbeans = getDomainData ( ) ; } catch ( Exception e ) { throw new ServletException ( "Failed to get MBeans" , e ) ; } request . setAttribute ( "mbeans" , mbeans ) ; RequestDispatcher rd = this . getServletContext ( ) . getRequestDispatcher ( "/displaymbeans.jsp" ) ; rd . forward ( request , response ) ; }
Display all MBeans