Passing parameters between forms and flow (Struts 1.3)
posted 3 years ago
I have form1 in page1.jsp and form2 in page2.jsp.
The form1 contains a radio button group and it doesn't have validation.
The value of the radio button selected is used to query the database (via an Action called Load) and build the form2 in page2.jsp (for example in form2 is displayed a radio button group, which labels and values are retrieved from the db).
The form2 has validation (via validate() method of a ValidatorAction). If the validation fails, the form2 must be displayed again with errors (Load Action must be called again to rebuild the form). Instead, if the validation goes well, another page, page3.jsp, must be displayed.
I would a basic example or a link to an example, which shows a similar flow between Action, ActionForm, ValidatorAction... and the struts-config.xml
Basically, the two form call the same Action to build the form2.