springwebflow重定向

springwebflow重定向,spring,spring-webflow-2,Spring,Spring Webflow 2,我的flow.xml是 <?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:webflow="http://www.springframework.org/schema/webflow-con

我的flow.xml是

<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:webflow="http://www.springframework.org/schema/webflow-config"
      xsi:schemaLocation="http://www.springframework.org/schema/webflow
                          http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">




    <view-state id="index"  view="/WEB-INF/jsp/index.jsp">
        <transition on="phoneEntered" to="s1"/>
    </view-state>

     <view-state id="s1"  view="/WEB-INF/jsp/ac.jsp">
        <transition on="buttonPressed" to="next"/>
    </view-state>

    <end-state id="next" view="/WEB-INF/jsp/next.jsp"/>

</flow>
我的index.jsp代码是

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to Spring Web MVC project</title>
    </head>

    <body>

    <form:form>

        <input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>

        <input type="submit" name="_eventId_phoneEntered" value="HIT ME"/>
    </form:form>

    </body>
</html>
我的SpringWebFlow启动良好。第一视图状态呈现良好,但当我单击index.jsp上的提交按钮时。。什么都没发生

当index.jsp在web浏览器中呈现时,url看起来像/orderFlow.htm?execution=e2s1


请帮助

您需要JSP中定义的Spring表单标记库:

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
您也不需要或不想要隐藏的_flowExecutionKey参数