Spring Web Flow2开始状态

来源:互联网 发布:恒生指数看盘软件 编辑:程序博客网 时间:2024/06/06 03:03

学习笔记,记录一下Spring  Web  Flow学习过程:

Spring  Web  Flow的开始状态,

在SWF1中流开始状态使用:

<start-state idref="showid"/>
 showid:指定开始状态的ID.
在SWF2中,已经废弃独立的start-state状态节点.使用
<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"start-state="startView"> </flow>
 在flow标签中使用start-state来进行明确指定。

如果不使用上面明确指定方式,那么默认flow定义文件中第一个状态即为开始状态.

 

 

0 0