THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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 likeinclude the notions of
- bridge objects to utilize existing s1 resources, and
- utilities to convert resources to s2 equivalents.
This is a whiteboard describing tools that volunteers might write, given sufficient interest. |
Dual Processor, Shared Resources
- An Action 2.0 !A s2 TextProvider that retrieves messages from the Action 1.x !s1 MessageResources instance in the servlet contextA 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 Interceptor that can apply SAF1 validations to s2 actions, converting error messages to s2 format.
- An Action and/or Interceptor that executes a Commons Chain chain
Conversion Wizard
...
- instance.
Struts 1 Emulation
- Implement s2 Action interface on s1 Action; Extend Session-Aware Interceptor to set properties corresponding to s1 execute parameters and populate ActionForm; Action
execute()
invokesexecute(...)
using properties; return ActionForward name. - Extend aforementioned s1 Action Interceptor to load and process PlugIns
Conversion Wizards
- Utilize XSLT and other text processing tools to convert
struts-config.xml
tostruts.xml
,validations.xml
to a global s2validations.xml
, and Struts message resources to global s2resource.properties
. - ... convert s1 Action classes to session-aware s2 Action classes
- ... convert s1 JSPs to s2 JSPs (non-trivial!)
Next: Struts 1 Solutions
...
...
This page adopted from http://wiki.apache.org/struts/MigrationTools.