...
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Dependencies
Update your project dependences to use struts2-core-2.1.x and the plugins struts2-core-2.1.x.
Info |
---|
There have been significant changes to the Configuration API between 2.0 and 2.1. Third-party plugins for 2.0 may not be compatible with 2.1. |
Maven users can update their project's pom.xml to reference the new core and plugin versions.
Ensure maven is configured to use the appropriate repository. Non-GA releases are usually available in a staging repository:
Code Block |
---|
<repositories>
<repository>
<id>struts2.1.1-staging</id>
<name>Struts 2.1.1 staging repository</name>
<layout>default</layout>
<url>http://people.apache.org/builds/struts/2.1.1/m2-staging-repository/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
|
Non-Maven users can can download the jars and dependencies in a Distribution 2.1.1
Update struts.xml Configuration
Results and Interceptors have been renamed to use camelCase instead of hyphenated names (eg. now redirectAction instead of redirect-action).
Review all custom interceptor stacks, interceptor refs and results and remove the hyphen.
Interceptors:
From | To |
---|---|
external-ref | externalRef |
model-driven | modelDriven |
static-params | staticParams |
scoped-model-driven | scopedModelDriven |
servlet-config | servletConfig |
token-session | tokenSession |
Results:
From | To |
---|---|
redirect-action | redirectAction |
plaintext | plainText |
Note | ||
---|---|---|
Forgetting to rename an interceptor or result reference will prevent your WebApp from starting. The following is a typical stacktrace for an invalid result type.
|
Migrate plugin configuration
Tiles
Dojo
Migration issue/resolutions
...