@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) {
        DaoFactory daoFactory = MySqlFactory.getDaoFactory();
        OrderDao orderDao = daoFactory.getOrderDao(daoFactory.getConnection());
        try {
            String[] checkedOrderIds = request.getParameterValues("checkedOrders");
            if (checkedOrderIds != null) {
                orderDao.confirmSelectedIds(checkedOrderIds);
            }
            List<Order> orderList = orderDao.selectNotConfirmed();
            request.setAttribute("orderList", orderList);
            request.getRequestDispatcher("AdminProcessing.jsp").forward(request, response);
        } catch (SQLException | ServletException | IOException ex) {
            Logger.getLogger(StartAdminWorkCommand.class.getName()).log(Level.SEVERE, null, ex);

        }
    }