Specify the parameter name in the name attribute. <input type = "submit" name = "update" value = "Update" /> <input type = "submit" name = "delete" value = "Delete" /> Include the "params" attribute, with the corresponding parameter name as value, in the annotation for request mapping @RequestMapping(..., params = "update") public ModelAndView updateCustomer(...) { ... } @RequestMapping(..., params = "delete") public ModelAndView deleteCustomer(...) { ... }
1 comment:
Thank you Rocky. Good info.
Post a Comment