private void addEditSubmitHandler(HttpServletRequest request, HttpServletResponse response) {
   CompanyBean companyBean = CompanyManager.createEntity(request);
   try {
     CompanyManager.saveCompany(companyBean);
     forward("/AdminOptions.jsp", request, response);
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
  private void CompanyDetailsHandler(HttpServletRequest request, HttpServletResponse response) {

    String companyCode = request.getParameter("companyCode");
    try {
      ResultSet companyDetails = CompanyManager.getCompanyDetails(companyCode);
      request.setAttribute("companyDetails", companyDetails);
      forward("/CompanyDetails.jsp", request, response);
    } catch (Exception e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
  }
 private void CompanySearchResultsHandler(
     HttpServletRequest request, HttpServletResponse response) {
   ResultSet companyList = CompanyManager.searchCompany(request);
   request.setAttribute("companyList", companyList);
   try {
     forward("/CompanyList.jsp", request, response);
   } catch (ServletException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
  private void editCompanyHandler(HttpServletRequest request, HttpServletResponse response) {
    ResultSet companyCode = (ResultSet) request.getAttribute("companyCode");
    String code;
    try {
      code = companyCode.getString("Code");
      ResultSet companyDetails = CompanyManager.getCompanyDetails(code);
      request.setAttribute("companyDetails", companyDetails);
    } catch (SQLException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }

    try {
      forward("/EditCompany.jsp", request, response);
    } catch (ServletException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
 private void CompanyListHandler(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   ResultSet companyList = CompanyManager.getAllCompanies();
   request.setAttribute("companyList", companyList);
   forward("/CompanyList.jsp", request, response);
 }