title: How url works in Spring Web flow?
body: <p>Below is my project url.
  <a href="http://localhost:8080/springwebflow/loginFlow;jsessionid=k7338gzuvyc2sk36axkzhe9r?execution=e1s1" rel="nofollow">http://localhost:8080/springwebflow/loginFlow;jsessionid=k7338gzuvyc2sk36axkzhe9r?execution=e1s1</a></p>
  
  <p>How <strong>springwebflow/loginFlow</strong> path works ? and with this path how my display_login.jsp come?</p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Spring Web Flow&lt;/display-name&gt;
  
    &lt;servlet&gt;
          &lt;servlet-name&gt;login&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;
                  /WEB-INF/config/login-servlet-config.xml
                  /WEB-INF/config/login-webflow-config.xml
                  /WEB-INF/config/spring-config.xml
              &lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;login&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
      xmlns:context="http://www.springframework.org/schema/context"
  
      xsi:schemaLocation="http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
      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"&gt;
  
      &lt;mvc:annotation-driven /&gt;
      &lt;context:component-scan base-package="com.studytrails.tutorials.springwebflow" /&gt;
  
      &lt;!--Define FlowHandlerMapping to tell DispatcherServlet (in web.xml)
            to send flow requests to Spring Web Flow --&gt;
      &lt;bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"&gt;
          &lt;property name="flowRegistry" ref="loginFlowRegistry" /&gt;
      &lt;/bean&gt;
  
      &lt;!-- Define FlowHandlerAdapter to handle Spring Web Flow request call.
              This is the Controller class in Spring Web Flow --&gt;
      &lt;bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter"&gt;
          &lt;property name="flowExecutor" ref="loginFlowExecutor" /&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>login-servlet-config.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:flow="http://www.springframework.org/schema/webflow-config"
      xsi:schemaLocation="http://www.springframework.org/schema/webflow-config
                          http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd
                          http://www.springframework.org/schema/beans
                          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;
  
          &lt;!-- Define the flow executor responsible for executing login web flow --&gt;              
          &lt;flow:flow-executor id="loginFlowExecutor" flow-registry="loginFlowRegistry"/&gt;
  
          &lt;!-- Define the registry that holds references to all the flow related XML configuration--&gt;
          &lt;flow:flow-registry id="loginFlowRegistry"&gt;
              &lt;flow:flow-location id="loginFlow" path="/WEB-INF/flows/login-flow.xml"/&gt;
          &lt;/flow:flow-registry&gt;       
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>login-webflow-config.xml</p>
  
  <pre><code>&lt;%@ page isELIgnored ="false" %&gt;
  
  &lt;html xmlns:form="http://www.springframework.org/tags/form"&gt;
  
      &lt;body&gt;
          &lt;form action="${flowExecutionUrl}&amp;_eventId=loginCredentialsEntered" method="post"&gt; 
  
              &lt;input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/&gt;
              &lt;br/&gt;
              Enter login name as &lt;b&gt;alba&lt;/b&gt; and password as &lt;b&gt;pass&lt;/b&gt; for successfull login.
              &lt;br/&gt;
              Use any other login name and password for login error.
              &lt;br/&gt;
              &lt;br/&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Login Name:&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="loginName"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Password: &lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="password"/&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
  
              &lt;br/&gt;           
              &lt;input type="submit" value="Login" /&gt;
  
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>display_login.jsp</p>
  
  <p>PFA are my files, could you please explain how flows works with url.</p>