9/05/2012

Map request parameters as a Map in a controller method

@RequestMapping(value = "/selectAppsForAsset", method = RequestMethod.POST)
public @ResponseBody String selectAppsForAsset(@RequestParam(value = "pid") String assetPublicId, @RequestParam(value="map[]", required=false) String[] selectedAppNumbers) {
...
}


Here it is:
@RequestParam(value="map[]", required=false) String[] selectedAppNumbers

No comments:

Post a Comment