File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamically loading a form

 
trisha grissom
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 303
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic