code: 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);
     }
docs: Display all MBeans
  @param request The HTTP request
  @param response The HTTP response
  @exception ServletException Thrown if an error occurs
  @exception IOException Thrown if an I/O error occurs