Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Name

WebWork2 Plugin

Publisher

Donald Brown Image Added

License

Open Source (ASL2)

Version

1.0-SNAPSHOT

Compatibility

Struts 2.0.9+

Homepage

WebWork2 Plugin

Download

SVN

Wiki Markup{rate:title=Rating|theme=dynamic}

Overview

...

...

This plugin is only experimental and hasn't been released yet. It is not ready to be used in production applications.

...

The Struts 2 WebWork plugin excerptINLINE

allows webwork actions and configuration to be used in Struts 2

...

Features

  • Includes adapter classes and interfaces of classes including Action, and ActionSupport
  • Supports webwork.properties, xwork.properties and xwork.xml
  • Supports JSP, Freemarker, and Velocity WebWork 2 tags

...

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

...

to:

...

...

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

...

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:

...

Replace webwork taglib with struts taglib

...

Struts requires a doctype if you have a validators.xml, add the following doctype:

...

...

Also, make sure you update the built in validators with the new validator classnames. The default validators can be found in the xwork source code at /com/opensymphony/xwork2/validator/validators/default.xml.

...

This plugin does not support webwork-style ActionContext, so all Actions that use the Action context must be updated. Again, this is usually only requires updating the package for ActionContext.

Resources

Version History

...

Version

...

Date

...

Author

...

Update references to ActionMapperFactory

Previously, an ActionMapper would be retrieved via the following code:

...

In Struts 2, the ActionMapper must be retreived via the internal Guice container:

...

Resources