title: Next state is not getting called in spring web flow
body: <p>I have Spring 3 application having Tiles2 as view resolver. Whenever I am clicking on "submit" button next jsp page should be displayed but it stays on same page.</p>
  
  <p>I have a file WebFlow.xml file inside /WEB-INF/flow directory and JSPs are also in same folder.</p>
  
  <p>My configuration as follows:
  -servlet.xml</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc"
      xmlns:flow="http://www.springframework.org/schema/webflow-config"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
          http://www.springframework.org/schema/mvc
          http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
          http://www.springframework.org/schema/webflow-config
          http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd"&gt;
  &lt;mvc:annotation-driven/&gt;
      &lt;context:component-scan base-package="com.controller.*"/&gt;
  
      &lt;bean id="tilesViewResolver" class="org.springframework.web.servlet.view.tiles2.TilesViewResolver"/&gt;
  
      &lt;bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
          &lt;property name="definitions"&gt;
              &lt;list&gt;
                  &lt;value&gt;/WEB-INF/tiles.xml&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  &lt;flow:flow-executor id="flowExecutor" flow-registry="flowRegistry"/&gt;
  
      &lt;flow:flow-registry id="flowRegistry"&gt;
          &lt;flow:flow-location path="/WEB-INF/flow/WebFlow.xml" id="flow"/&gt;
      &lt;/flow:flow-registry&gt;
  
      &lt;bean id="flowHandlerMapping" class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"&gt;
          &lt;property name="flowRegistry" ref="flowRegistry"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="flowHandlerAdapter" class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter"&gt;
          &lt;property name="flowExecutor" ref="flowExecutor"/&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>WebFlow.xml</p>
  
  <pre><code>&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.0.xsd"&gt;
  
      &lt;var name="studentRegForm" class="com.formbean.flows.StudRegForm"/&gt;
  
      &lt;view-state id="login" view="login"&gt;
          &lt;transition on="studentReg" to="studentReg"/&gt;
      &lt;/view-state&gt;
  
      &lt;view-state id="studentReg" view="studentReg" model="studentRegForm"&gt;
          &lt;transition on="submitStudInfo" to="studConfirmPage"/&gt;
      &lt;/view-state&gt;
  
      &lt;view-state id="studConfirmPage"&gt;
          &lt;transition on="submit" to="showStoredPage"/&gt;
          &lt;transition on="Cancel" to="studentReg"/&gt;
      &lt;/view-state&gt;
  
      &lt;end-state id="showStoredPage"/&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>login.jsp</p>
  
  <pre><code>&lt;sf:form id="loginFrm" modelAttribute="loginForm" method="GET" action="${flowExecutionUrl}"&gt;
          &lt;input type="text" name="_flowExecutionKey" value="${flowExecutionKey}"/&gt;
          &lt;input type="submit" value="Student Registration" name="_eventId_studentReg"/&gt;
      &lt;/sf:form&gt;
  </code></pre>
  
  <p>StudentReg.jsp</p>
  
  <pre><code>&lt;sf:form id="studRegFrm" modelAttribute="studentRegForm" method="GET" action="${flowExecutionUrl}"&gt;
      &lt;input type="text" name="_flowExecutionKey" value="${flowExecutionKey}"/&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;sf:label path="name"&gt;Please Enter Name:&lt;/sf:label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;sf:input path="name"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;sf:label path="address"&gt;Please Enter Address:&lt;/sf:label&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;sf:input path="address"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input type="submit" name="_eventId_submitStudInfo" value="Submit"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/sf:form&gt;
  </code></pre>
  
  <p>tiles.xml</p>
  
  <pre><code>&lt;tiles-definitions&gt;
      &lt;definition name="mainLayout" template="/WEB-INF/jsp/layout/mainLayout.jsp"&gt;
          &lt;put-attribute name="Title" value=""/&gt;
          &lt;put-attribute name="Header" value="/WEB-INF/jsp/layout/Header.jsp"/&gt;
          &lt;put-attribute name="Body" value=""/&gt;
          &lt;put-attribute name="Footer" value="/WEB-INF/jsp/layout/Footer.jsp"/&gt;
      &lt;/definition&gt;
  
      &lt;definition name="login" extends="mainLayout"&gt;
          &lt;put-attribute name="Title" value="Start Page"&gt;&lt;/put-attribute&gt;
          &lt;put-attribute name="Body" value="/WEB-INF/flow/login.jsp"/&gt;
      &lt;/definition&gt;
  
      &lt;definition name="studentReg" extends="mainLayout"&gt;
          &lt;put-attribute name="Title" value="Registration Page"&gt;&lt;/put-attribute&gt;
          &lt;put-attribute name="Body" value="/WEB-INF/flow/StudentReg.jsp"/&gt;
      &lt;/definition&gt;
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>But whenever I am clicking on submit button of login.jsp, it gives ${flowExecutionUrl} &amp; ${flowExecutionKey} as blank and next screen is not displaying. Am I missing some configuration or what's going wrong? Please help.</p>