In Spring MVC, is there anyway to select a controller method using a form element value? For example, let’s say we have two buttons both with name “action” in a form. Is there anyway to execute different controller methods based on the button which was clicked by the user without using any javascript?
Share
Yes, using
@RequestMapping(params="..."). See docs.