@RequestMapping(value = "/pathname/{profileId}/{pathId}/addGroups", method = RequestMethod.POST)
    @ResponseBody
    public String addGroups(Model model, @PathVariable int profileId, @PathVariable int pathId, int[] group_ids) {
        for (int i = 0; i < group_ids.length; i++)
            pathOverrideService.AddGroupByNumber(profileId, pathId, group_ids[i]);
        return null;
    }
@ RequestMapping ( value = "/pathname/{profileId}/{pathId}/addGroups" , method = RequestMethod . POST ) @ ResponseBody public String addGroups ( Model model , @ PathVariable int profileId , @ PathVariable int pathId , int [ ] group_ids ) { for ( int i = 0 ; i < group_ids . length ; i ++ ) pathOverrideService . AddGroupByNumber ( profileId , pathId , group_ids [ i ] ) ; return null ; }
this adds groups from the editPathname page