THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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.
This is a whiteborad 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()
invokesexecute(...)
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
toactionstruts.xml
,validations.xml
to a global SAF2 s2validations.xml
, and Struts message resources to global SAF2 s2resource.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 Solutions
...