Versions Compared

Key

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

...

  • Not all classes and interfaces from XWork and WebWork 2 are extended
  • Tags are simple wrappers around existing Struts 2 ones
  • WebWork features like the rich text editor, calendar, and continuations aren't supported
  • Extra features like JasperReports need the proper Struts 2 plugin
  • Sitemesh wrappers aren't provided

Usage

Setting up Dependencies

If using Maven 2, replace the WebWork 2 dependency with this plugin, so change:

...

For other build systems, copy this plugin, Struts 2 jars, and the Struts 2 Spring plugin to your application's WEB-INF/lib directory.

Configuring Struts FilterDispatcher

The Struts FilterDispatch needs to be configured to read the webwork xwork configuration files. This can be done by adding init-params to the filter configuration:

Code Block

<filter>

    <filter-name>struts2</filter-name>

    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>

    <init-param>
        <param-name>config</param-name>
        <param-value>struts-default.xml,struts-plugin.xml,struts.xml,xwork.xml</param-value>
    </init-param>
    <init-param>
        <param-name>configProviders</param-name>
        <param-value>org.apache.struts2.webwork2.WebWorkConfigurationProvider</param-value>
    </init-param>
</filter>

Resources

Version History

...