title: how to handle multiple submit buttons in spring mvc in java. One Submit buttons is for Server side and another is only for Client Side
body: <p>I am trying to handle multiple submit buttons in spring mvc in java. 1st Submit buttons is for Server side call and 2nd Submit button is  only for Client Side call.</p>
  
  <p>But here the problem here I am facing is, for both submit button, control is going to Server side . I am Using plane jsp with spring tag. Here my requirement is one submit button should work for server side &amp; another submit button only works for client side.</p>
  
  <p>CODE Snippet:</p>
  
  <pre><code>&lt;body&gt;
  &lt;div&gt;
  &lt;form:form commandName="route" method="post" action="routeSave" id="route"&gt;
  &lt;div class="center"&gt;
  
  Start:&lt;form:input  path="start" id="start" maxlength="50"/&gt;
  End:&lt;form:input  path="end" id="end" maxlength="50"/&gt;
  City:&lt;form:input  path="city" id="city" maxlength="50" onchange="mapcenter()"/&gt;
  RouteName:&lt;form:input  path="routeName" id="routeName" maxlength="50"/&gt;
  StartTime:&lt;form:input path="startTime" id="startTime" maxlength="50"/&gt;
  
  &lt;form:button value="SaveMap"&gt;Save Button&lt;/form:button&gt;
  
  &lt;form:button value="SaveMap" onclick="save_map()"&gt;Save Map&lt;/form:button&gt;
  </code></pre>