Spring 3 — form with 2 buttons, sending 2 parameters to controller method
I have a Spring 3 MVC form with 2 parameters I'm trying to send to my controller method, and I'm getting a 404 error. The twist on this problem is that the form has 2 submit buttons, and the submit button that is clicked dictates the value of one of the parameters. Here is my form. <form:form action="/approve/${bulletin.id}" method="post"> <table> <tr> <td colspan="2"><b>From:</b> <c:out value="${bulletin.name}" /></td> </tr> <tr> <td colspan="2"><b>Subject:</b> <c:out value="${bulletin.subject}" /></td> </tr> <tr> <td colspan="2"><b>Date:</b> <c:out value="${bulletin.date}" /> <br></td> </tr>