Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Charlie Miller   on Jul 13 In Java Category.

  
Question Answered By: Melissa King   on Jul 13

If I understand your question, here is a possible solution.

- Encapsulate all the input fields  in a Struts Action form  class
- In this class, have a Collection attribute to accept input from you
variable number  of fields. In Struts 1.1, Collections are
automatically manages by Struts.
- To display the collection in the JSP, and capture user input for the
collection, use tag iterate, possibly also tag nested.
- After form submit, in the Struts Action class  you only have to
iterate through the collection to get field values.

Share: 

 
 
Didn't find what you were looking for? Find more on problem using struts Or get search suggestion and latest updates.


Tagged: