protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        
        String rd = request.getParameter("r");
        
        try (PrintWriter out = response.getWriter()) {
            /* TODO output your page here. You may use following sample code. */
            out.println("<!DOCTYPE html>");
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet RemoveRoleServlet</title>");            
            out.println("</head>");
            out.println("<body>");
            if (rd == null) {
                out.println("<h1>No Way Jose</h1>");            
            } else {
                Role r = new Role();
                r.setId(Long.parseLong(rd));
                rfl.remove(r);
                response.sendRedirect("listrole");
            }
            out.println("</body>");
            out.println("</html>");
        }
    }