You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Struts Action 2.0 migration tools will assist the Action 1.x application in the migration process. These tools serve two purposes, named #2 and #3 in the MigrationStrategy document.

This page discusses what these two collections of tools might look like.

Dual Processor, Shared Resources

  • An Action 2.0 !TextProvider that retrieves messages from the Action 1.x !MessageResources instance in the servlet context
  • A Validation interceptor that looks up the action in commons-validation objects loaded by an existing Action 1.x application. The action errors would be translated and stored into a !ValidationAware instance.
  • An Action and/or Interceptor that executes a Commons Chain chain

Conversion Wizard

  • Run an Action 1.x !PlugIn using a wrapper no-op Interceptor that calls the !PlugIn in its init() method
  • An Action 2 wrapper Action that executes an Action 1 Action (and then sells sea shells at the sea shore!)
  • An Interceptor that loads the !ActionForm for the Action so the Action 2.0 wrapper can pass it to the Action 1.0 Action
  • An Ant task that reads Action 1.x configuration and generates xwork.xml that supports the above features

This page adopted from http://wiki.apache.org/struts/MigrationTools.

  • No labels