Hi, I want to load a form with different choices for the user. These choices are loaded in the input fields of the form depending on the result set of an SQl call.How can this be done using struts framework. Thank you.
Darryl A. J. Staflund
posted 12 years ago
Hi Trisha, Your best bet would be to create two Struts actions -- one that has the responsibility of populating your form and/or request objects with the information you want to display on the form page, another that has the responsibility of processing the form once the customer has modified and submitted it back to the server. The JSP page that is displayed in between actions would then use information provided in the first action to populate the form fields, as well as post the form to the second action. Darryl. [ June 20, 2003: Message edited by: Darryl A. J. Staflund ]