code: private void invokeOp(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
     {
        String reqname = request.getParameter("name");
  
        String name = URLDecoder.decode(reqname, "UTF-8");
  
        if (trace)
           log.trace("invokeOp, name=" + name);
  
        String[] args = getArgs(request);
        String methodIndex = request.getParameter("methodIndex");
  
        if (methodIndex == null || methodIndex.length() == 0)
           throw new ServletException("No methodIndex given in invokeOp form");
  
        int index = Integer.parseInt(methodIndex);
        try
        {
           OpResultInfo opResult = invokeOp(name, index, args);
           request.setAttribute("opResultInfo", opResult);
  
           RequestDispatcher rd = this.getServletContext().getRequestDispatcher("/displayopresult.jsp");
           rd.forward(request, response);
        }
        catch (Exception e)
        {
           throw new ServletException("Failed to invoke operation", e);
        }
     }
docs: Invoke a MBean operation given the index into the MBeanOperationInfo{}
  array of the mbean.
  @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