Ниже приведен адрес моего проекта. http://localhost:8080/springwebflow/loginFlow;jsessionid=k7338gzuvyc2sk36axkzhe9r?execution=e1s1
Как работает путь springwebflow/loginFlow? и с этим путем как мой display_login.jsp приходит?
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app<?xml version="1.0" encoding="UTF-8" ?>
<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">
<mvc:annotation-driven />
<context:component-scan base-package="com.studytrails.tutorials.springwebflow" />
<!--Define FlowHandlerMapping to tell DispatcherServlet (in web.xml)
to send flow requests to Spring Web Flow -->
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="flowRegistry" ref="loginFlowRegistry" />
</bean>
<!-- Define FlowHandlerAdapter to handle Spring Web Flow request call.
This is the Controller class in Spring Web Flow -->
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<property name="flowExecutor" ref="loginFlowExecutor" />
</bean>
</beans>
3.dtd" >
<web-app>
<display-name>Spring Web Flow</display-name>
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/config/login-servlet-config.xml
/WEB-INF/config/login-webflow-config.xml
/WEB-INF/config/spring-config.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>login</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
веб.xml
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<mvc:annotation-driven />
<context:component-scan base-package="com.studytrails.tutorials.springwebflow" />
<!--Define FlowHandlerMapping to tell DispatcherServlet (in web.xml)
to send flow requests to Spring Web Flow -->
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
<property name="flowRegistry" ref="loginFlowRegistry" />
</bean>
<!-- Define FlowHandlerAdapter to handle Spring Web Flow request call.
This is the Controller class in Spring Web Flow -->
<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
<property name="flowExecutor" ref="loginFlowExecutor" />
</bean>
</beans>
логин-servlet-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- Define the flow executor responsible for executing login web flow -->
<flow:flow-executor id="loginFlowExecutor" flow-registry="loginFlowRegistry"/>
<!-- Define the registry that holds references to all the flow related XML configuration-->
<flow:flow-registry id="loginFlowRegistry">
<flow:flow-location id="loginFlow" path="/WEB-INF/flows/login-flow.xml"/>
</flow:flow-registry>
</beans>
логин-webflow-config.xml
<%@ page isELIgnored ="false" %>
<html xmlns:form="http://www.springframework.org/tags/form">
<body>
<form action="${flowExecutionUrl}&_eventId=loginCredentialsEntered" method="post">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>
<br/>
Enter login name as <b>alba</b> and password as <b>pass</b> for successfull login.
<br/>
Use any other login name and password for login error.
<br/>
<br/>
<table>
<tr>
<td>Login Name:</td>
<td><input type="text" name="loginName"/></td>
</tr>
<tr>
<td>Password: </td>
<td><input type="text" name="password"/></td>
</tr>
</table>
<br/>
<input type="submit" value="Login" />
</form>
</body>
</html>
display_login.jsp
PFA — это мои файлы, не могли бы вы объяснить, как потоки работают с URL-адресами.