protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException, ClassNotFoundException, InstantiationException, SQLException, IllegalAccessException {
        DAO dao = new DAO();
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            String ID = request.getParameter("ID");
            String userName = request.getParameter("userName");
            int result = dao.rmUsr(ID, userName);
            if (result == 1) {
                out.println("User Removed");
                response.setHeader("Refresh", "2;url=/websocchatroom/rmUsr");

            } else {
                out.println("Error removing user");
                response.setHeader("Refresh", "2;url=/websocchatroom/rmUsr");
            }
        } finally {
            out.close();
        }
    }