title: How to submit form using Spring weblow
body: <p>Below is my code snippet from jsp &amp; flow xml, while trying to submit the form my page is getting refreshed but request is not going to the server. Please assist.</p>
  
  <pre><code>Jsp
  
  &lt;form action="${flowExecutionUrl}" modelAttribute="employeeDto" method="post"&gt;
  &lt;div class="formButton"&gt;
      &lt;input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}" /&gt; 
      &lt;input  name="_eventId_nextBtn" type="submit" value="submit"&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  
  Flow xml
  
  &lt;flow xmlns="http://www.springframework.org/schema/webflow"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.4.xsd"&gt;
  
  &lt;var name="employeeDto" class="com.school.transferobjects.EmployeeDto"/&gt;
  &lt;view-state id="employeeView" model="employeeDto" view="employee"&gt;
      &lt;transition on="nextBtn" to="createEmployee" /&gt;
  &lt;/view-state&gt;
  
      &lt;action-state id="createEmployee"&gt;
          &lt;evaluate   
          expression="employeeHelper.saveEmployee(flowRequestContext,employeeDto)"
           result="flowScope.res"/&gt;
  
          &lt;transition on="${flowScope.res.success=='success'}" to="student.do"/&gt; 
      &lt;/action-state&gt;
  
  &lt;/flow&gt;
  </code></pre>