Versions Compared

Key

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

Table of Contents

Java 8

From this version of Struts, the framework requires Java 8 at least to run.

Servlet API 3.1

Struts 6.0.0 requires a servlet container which supports Servlet API 3.1 at least, it won't work with older versions.

Dependencies

Update Struts dependencies to 6.x.x.

Remove the following plugin dependencies because they were dropped and aren't supported anymore:

...

Support for Velocity has been moved into a dedicated plugin, also Velocity based tags were moved into the new plugin, see

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyWW-5049
for more details.

Note

To still use the Velocity plugin in your application you must include the plugin and its JARs plus use a proper parent package in your struts.xml  like this:

Code Block
<package name="mystrutsapp" extends="json-default, velocity-default">
  ...
</package>



DTD

Please use a proper DTD header in struts.xml as demonstrated below:

Code Block
languagexml
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
        "https://struts.apache.org/dtds/struts-6.0.dtd">

Class changes

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider became abstract, please use org.apache.struts2.config.StrutsXmlConfigurationProvider instead.

...