I\'m using spring mvc. And I can\'t get param from url when method = post. But when I change method to GET, so I can get all param.
This is my form:
When I want to get all the POST params I am using the code below,
@RequestMapping(value = "/", method = RequestMethod.POST)
public ViewForResponseClass update(@RequestBody AClass anObject) {
// Source..
}
I am using the @RequestBody annotation for post/put/delete http requests instead of the @RequestParam which reads the GET parameters.