@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) {
        try {
            request.setCharacterEncoding("UTF-8");
            response.setCharacterEncoding("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        ArrayList<News> list = null;
        if (request.getAttribute("listNews") != null) {
            list = (ArrayList<News>)request.getAttribute("listNews");
        }
        request.setAttribute("listNews", list);
        RequestDispatcher dispatcher = request.getRequestDispatcher("/showNewsForAdmin.jsp");
        try {
            dispatcher.forward(request, response);
        } catch (ServletException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }