首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

WebWork 二 Migration Strategies(转)

2012-10-26 
WebWork 2 Migration Strategies(转)WebWork 2 Migration Strategies Edit Page ?Browse Space ?Add Page

WebWork 2 Migration Strategies(转)
WebWork 2 Migration StrategiesWebWork 二 Migration Strategies(转) Edit Page ? WebWork 二 Migration Strategies(转) Browse Space ? WebWork 二 Migration Strategies(转) Add Page ? WebWork 二 Migration Strategies(转) Add News Added by Don Brown, last edited by Don Brown on Oct 01, 2006 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... WebWork 二 Migration Strategies(转)

热点排行