• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing parameters between forms and flow (Struts 1.3)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic