注:(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.
[color=blue]Package names[/color]
Substitute com.opensymphony.webwork [color=red]to [/color]org.apache.struts2.
Substitute com.opensymphony.xwork [color=red]to [/color] com.opensymphony.xwork2.
[color=blue]Configuration files[/color]
Rename webwork.properties [color=red]to[/color] struts.properties.
Rename xwork.xml [color=red]to [/color] 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.
[color=blue]Converters[/color]
If you are using converters that subclass WebworkTypeConverter, rename the superclass to StrutsTypeConverter.
[color=blue]JSP's[/color]
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...
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.
[color=blue]Package names[/color]
Substitute com.opensymphony.webwork [color=red]to [/color]org.apache.struts2.
Substitute com.opensymphony.xwork [color=red]to [/color] com.opensymphony.xwork2.
[color=blue]Configuration files[/color]
Rename webwork.properties [color=red]to[/color] struts.properties.
Rename xwork.xml [color=red]to [/color] 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.
[color=blue]Converters[/color]
If you are using converters that subclass WebworkTypeConverter, rename the superclass to StrutsTypeConverter.
[color=blue]JSP's[/color]
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...