Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Struts Action 2 migration tools include the notions of

  • bridge objects to utilize existing SAF1 s1 resources, and
  • utilities to convert resources to SAF2 s2 equivalents.

(warning)

This is a whiteborad whiteboard describing tools that volunteers might write, given sufficient interest.

Dual Processor, Shared Resources

  • An SAF2 A s2 TextProvider that retrieves messages from the SAF1 s1 MessageResources instance in the servlet context
  • An Interceptor that can apply SAF1 validations to SAF2 s2 actions, converting error messages to SAF2 s2 format.
  • An Action and/or Interceptor that executes a Commons Chain instance.

...

Struts 1 Emulation

  • Implement SAF2 s2 Action interface on SAF1 s1 Action; Extend Session-Aware Interceptor to set properties corresponding to SAF1 s1 execute parameters and populate ActionForm; Action execute() invokes execute(...) using properties; return ActionForward name.
  • Extend aforementioned SAF1 s1 Action Interceptor to load and process PlugIns

...

  • Utilize XSLT and other text processing tools to convert struts-config.xml to actionstruts.xml, validations.xml to a global SAF2 s2 validations.xml, and Struts message resources to global SAF2 s2 resource.properties.
  • ... convert SAF1 s1 Action classes to session-aware SAF2 s2 Action classes
  • ... convert SAF1 s1 JSPs to SAF2 s2 JSPs (non-trivial!)

Next: Issues and Struts 1 Solutions

...

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