Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

DTDs namespaces

XWork was moved under ASF umbrella sometime ago, thus caused change in DOCTYPE, to be compliant with the current version use the latest version available here. Below is presented the wrong DTD:

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xwork PUBLIC 
	"-//OpenSymphony Group//XWork 1.1.1//EN"
	"http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">

<xwork>
....

The valid one should like this:

Code Block
xml
xml

<!DOCTYPE xwork PUBLIC 
	"-//Apache Struts//XWork 1.0//EN"
	"http://struts.apache.org/dtds/xwork-1.1.1.dtd">
<xwork>
....

Package names

Substitute com.opensymphony.webwork to org.apache.struts2.
Substitute com.opensymphony.xwork to com.opensymphony.xwork2.

...