@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) {
        DaoFactory daoFactory = MySqlFactory.getDaoFactory();
        OrderDao orderDao = daoFactory.getOrderDao(daoFactory.getConnection());
        HttpSession session = request.getSession();
        try {
            List<Order> orders;
            if (session.getAttribute("User") == null) {
                int idOrder = Integer.parseInt(request.getParameter("idOrder"));
                orders = orderDao.selectIdKey(idOrder);
            } else {
                orders = orderDao.selectUserKey(((User)session.getAttribute("User")).getUsername());
            }
            request.setAttribute("orders", orders);
        } catch (SQLException ex) {
            Logger.getLogger(StandbyModeCommand.class.getName()).log(Level.SEVERE, null, ex);
        }
        try {
            request.getRequestDispatcher("StandbyMode.jsp").forward(request, response);
        } catch (ServletException | IOException ex) {
            Logger.getLogger(StandbyModeCommand.class.getName()).log(Level.SEVERE, null, ex);
        }
    }