This is the scenario using
Struts:
User Interface -> Action1 (input is Form1)-> Action 2 (input is Form2) ->User Interface
Action1 and Action2 are Action classes.
Action1 and Action1 are configured in struts-config.xmxl.
Action1 takes Form1 as input.
Action2 takes Form2 as input.
Form1 and Form2 are ActionForm.
Following are the questions:
1. If Form1 and Form2 are of the same class, will Form2 get magically populated by the values obtained from Form1, when Action1 forwards to Action2?
2. Will Form2 values be empty?
3. If Form1 and Form2 are of different class, then what value will Form2 have?
4. If Form1 and Form2 are of the same class, then what value will Form2 have?
5. Is it a good idea to do Action chaining?
Servlet chaining was never recommended.