app/controllers/UserController.java
/**
     * To Domonstrate the DELETE verb i shave to use Ajax
     * Buttons and form only support Get & POST.
     * User is deleted by username which is still sent by Ajax
     * as a parameter in the URL. Not a Json.
     */
To Domonstrate the DELETE verb i shave to use Ajax
Buttons and form only support Get & POST.
User is deleted by username which is still sent by Ajax
as a parameter in the URL. Not a Json.
To Domonstrate the DELETE verb i shave to use Ajax Buttons and form only support Get & POST . User is deleted by username which is still sent by Ajax as a parameter in the URL . Not a Json .
public Result deleteUser(String user){
        System.out.println("in delete");
        boolean res;
        User Deluser = null;
        res = User.DeleteUser(user);
        if(res == true) {
            System.out.println("" + user + " deleted");
            return ok("DELETED"); 
        }else {
            return ok("Not DELETED");
        }
    }
public Result deleteUser ( String user ) { System . out . println ( "in delete" ) ; boolean res ; User Deluser = null ; res = User . DeleteUser ( user ) ; if ( res == true ) { System . out . println ( "" + user + " deleted" ) ; return ok ( "DELETED" ) ; } else { return ok ( "Not DELETED" ) ; } }
To Domonstrate the DELETE verb i shave to use Ajax
 Buttons and form only support Get & POST.
To Domonstrate the DELETE verb i shave to use Ajax Buttons and form only support Get & POST .
// Success handled by Ajax. //Return Success.