I have a fragment of HTML page with one form and 2 button:
You can create separate methods with different @RequestMappings using the params variable.
@RequestMapping(value="/edit", method=RequestMethod.POST, params="action=save")
public ModelAndView save() {}
@RequestMapping(value="/edit", method=RequestMethod.POST, params="action=cancel")
public ModelAndView cancel() {}