注:(originally posted on the WebWork user forum)
I just finished migrating two applications from Webwork 2.2.4 to Struts 2.0.0 and thought I'd share what steps are involved in the process.
Package names
Substitute com.opensymphony.webwork
to org.apache.struts2.
Substitute com.opensymphony.xwork
to com.opensymphony.xwork2.
Configuration files
Rename webwork.properties
to struts.properties.
Rename xwork.xml
to struts.xml.
Change all occurrences of 'webwork' in struts.properties and struts.xml to 'struts'.
In web.xml, change com.opensymphony.webwork.dispatcher.FilterDispatcher to org.apache.struts2.dispatcher.FilterDispatcher.
Converters
If you are using converters that subclass WebworkTypeConverter, rename the superclass to StrutsTypeConverter.
JSP's
You have to change the taglib URI: uri="/webwork" to uri="/struts-tags"
Then you're done!
Well, maybe I've forgotten something but I'll guess you find that out when you try do compile and deploy your application...
分享到:
相关推荐
webwork2.2.4架包帮助学习
webwork 2.2.4开发指南
最近在做个项目,用的是webwork+spring+hibernate,在网上看了不少webwork+spring的配制方式,大多都是老的配制方式,比如2.1.7的,webwork2.2.4新加了很多功能,和spring的配制也简单了很多,我做了一个简单的登录...
webwork2.2.4的jar包
Struts 2 技术详解:基于WebWork核心的MVC开发与实践
struts2与webwork2之间的联系与区别
《Struts 2实战》结合实例介绍了Struts 2框架,主要内容包括Action、Result、Interceptor等框架组件,基于注解的配置选项等新特征,Struts 2插件 FreeMarker,如何从Struts 1和WebWork 2迁移到Struts 2,Ajax标签、...
不用多说了,Struts 2权威指南--基于WebWork核心的MVC开发(高清完整版),解压出来有200多M,因为权限不怎么够,我一共分了12卷,是一本不可多得的好书。第一卷附目录: 第1章 Struts 2概述,第2章 Struts 2下的Hello...
是学习struts 2很好的资料,这是原代码,分成两个压缩包.
Struts 2是Struts的下一代产品,是在 struts 1和WebWork的技术基础上进行了合并的全新的Struts 2框架。其全新的Struts 2的体系...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2的变化很小。
《Struts 2实战》结合实例介绍了Struts 2框架,主要内容包括Action、Result、Interceptor等框架组件,基于注解的配置选项等新特征,Struts 2插件 FreeMarker,如何从Struts 1和WebWork 2迁移到Struts 2,Ajax标签、...
webwork开发文档 struts2学习助手
从某种程度上来讲,Struts2没有继承Struts 1的血统,而是继承WebWork的血统。或者说,WebWork衍生出了Struts2,而不是Struts 1衍生了Struts2。因为Struts2是WebWork的升级,而不是一个全新的框架,因此稳定性、性能...
Struts 2是Struts的下一代产品,是在 struts 和WebWork的技术基础上进行了合并的全新的Struts 2框架。其全新的Struts 2的体系...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2只有很小的变化。
Struts 2是Struts的下一代产品,是在 struts 和WebWork的技术基础上进行了合并的全新的Struts 2框架。其全新的Struts 2的体系...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2只有很小的变化。
Struts 2是Struts的下一代产品,是在 struts 1和WebWork的技术基础上进行了合并的全新的Struts 2框架。其全新的Struts 2的体系结构...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2的变化很小
虽然Struts 2号称是一个全新的框架,但这仅仅是...从某种程度上来讲,Strut2没有继承Struts 1的血统,而是继承了WebWork的血统。 Struts2概述 http://www.ossez.com/forum.php?mod=viewthread&tid=13556&fromuid=426
Struts2是一个基于MVC设计模式的Web应用框架,它本质上相当于一个servlet,在MVC设计模式中,Struts2作为控制器(Controller)来...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2的变化很小。
Struts2是一个基于MVC设计模式的Web应用框架,它本质上相当于一个servlet,在MVC设计模式中,Struts2作为控制器(Controller)来...虽然从Struts 1到Struts 2有着太大的变化,但是相对于WebWork,Struts 2的变化很小。