protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
                                                                                   IOException {  request.setAttribute("errors","Ошибка базы данных");
        try{
            List<Category> cats = Factory.getInstance().CategoryDAO().getAll();
            request.setAttribute("cats",cats);
            int size = cats.size();
            request.setAttribute("size",size);
        } catch (SQLException e){
            request.setAttribute("errors",e);
        }
        request.getRequestDispatcher("index.jsp").forward(request, response);

    }