自己做了一个关于关于SWF的例子,希望能给你带来方便,谢谢!
web.xml-----------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>swfdemo</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<servlet-name>app</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/webflow.xml
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>app</servlet-name>
<url-pattern>*.swf</url-pattern>
</servlet-mapping>
<filter>
<filter-name>characterFilter</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterFilter</filter-name>
<servlet-name>app</servlet-name>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
webflow.xml-----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/"/>
<property name="suffix" value=".jsp"/>
</bean>
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>com.swf.swf</value>
</list>
</property>
</bean>
<bean name="/demo.swf" class="org.springframework.webflow.executor.mvc.FlowController">
<property name="flowLocator">
<bean class="org.springframework.webflow.registry.XmlFlowRegistryFactoryBean">
<property name="flowLocations">
<list>
<value>classpath:com/swf/*.xml</value>
</list>
</property>
</bean>
</property>
<property name="defaultFlowId" value="getSWF"/>
</bean>
</beans>
swf.xml------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="getDemoAction" class="com.swf.GetDemoAction"/>
</beans>
getSWF----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE flow PUBLIC "-//SPRING//DTD WEBFLOW 1.0//EN"
"http://www.springframework.org/dtd/spring-webflow-1.0.dtd">
<flow start-state="getSWF">
<action-state id="getSWF" >
<action bean="getDemoAction"/>
<transition on="*" to="finish"/>
</action-state>
<end-state id="finish" view="swf/index"/>
<import resource="swf.xml"/>
</flow>
其详细资料请见附件,谢谢!!!
分享到:
相关推荐
spring web flow入门 swf
Spring Web Flow 的目标是成为管理Web应用页面流程的最佳方案。当你的应用需要复杂的导航控制,例如向导,在一个比较大的事务过程中去指导用户经过一连串的步骤的时候,SWF将会是一个功能强大的控制器。
该文档结合sso单点登录的cas,详细讲述了Spring Web Flow的原来及运行过程,文档详细描述了Spring Web Flow的作用及如何搭建Spring Web Flow环境,结合项目,讲述的非常清晰。
Spring Web Flow (SWF) 是Spring Framework的一个脱离模块。这个模块是Spring Web应用开发模块栈的一部分,Spring Web包含Spring MVC。 Spring Web Flow 的目标是成为管理Web应用页面流程的最佳方案。当你的应用需要...
Spring Web Flow(SWF)会话管理器的一种实现,目的是改进使用精细粒度的会话复制。 ID生成实用程序,旨在生成用于唯一标识的ID。 它包括一些生成器策略。 对话管理员 对话管理器管理对话,并有效控制流程执行暂停...
一个翻页的demo,只上传了个.swf的例子
本教程通过一个简化的购物车应用,介绍了如何使用 Spring Web Flow 2.0 来构建 Web 应用程序。本教程以讲解实例为主,为了读者更好地理解 Spring Web Flow ,也有部分理论的解释。详细参考...
SWF-Angular是我前段时间创建的一个简单的 Angular库,用于在 Angular 环境中利用Spring Web Flow 。 然而,它还没有完成并经过适当的测试,我设法使用它来集成我的应用程序(以 angular 编写)以与 SWF 一起使用。 ...
里面有一个demo.asp把里面的swf列表,点击后在右侧出现swf效果,在文件夹里找跟swf一样名称的xml文档就可以找到示例。 里面共有46个破解swf文件,45个xml示例文档 文件列表: #Area2D.swf; #Bar2D.swf; #Bubble....
HTML中使用object和embed标签插入视频,利用flvplayer.swf进行播放。(demo不要直接双击打开,需要在服务器中才能正常播放)
一个基于C#+ Asp.Net实现的Web网页嵌入运行 SWF File 的程序例子。
SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWFPlayer带拖动条的SWF播放器SWF...
SWF Seeker是一个通用的SWF内存提取工具,可用于电子杂志,小游戏等的解密. 【功能介绍】 1.软件内置了最新的解密引擎,在同类软件中速度最高。 2、100%抓取到用户看到的任何形式封装的swf文件。 3.特有智能扫描模式,...
把多个swf打包到一个exe文件中的方法
利用FlashPaper将pdf转换为swf在使其能在web页面中显示,兼容各大浏览器 测试版本ie7+ 具体操作见博客 http://blog.csdn.net/qianqianyixiao1/article/details/43601645
OpenOffice转换安装程序、SWF安装工具、 jodconverter-2.2.2.jar包和jodconverter-core-3.0-beta-4.jar包,
html展示swf文件,用于在线预览。内附demo
SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件SWF插件