protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        
        User u = new User();
        u.setName(request.getParameter("name"));
        
        response.setContentType("text/html;charset=UTF-8");
        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 AddUser</title>");
            out.println("<link rel=\"stylesheet\" href=\"css/style.css\"/>");
            out.println("</head>");
            out.println("<body>");
            out.println("<div class=\"main\">");
            if (u.getName() == null) {
                out.println("<form method=\"POST\">");
                out.println("<label>User</label>");
                out.println("<input type=\"text\" id=\"user\" name=\"name\" />");
                out.println("<button type=\"submit\" name=\"btn\" value=\"val\">Enviar</button>");
            } else {
                ufl.create(u);
                response.sendRedirect("listuser");
            }
            out.println("<a class=\"go-back\" href=\"index.html\">Home</a>");
            out.println("</div>");
            out.println("</body>");
            out.println("</html>");
        }
    }