Web tier: servlets, JSP, Web frameworks: problem regarding validation of lines in JSP/STRUTS based form
- Posted by: krishna kishore
- Posted on: November 09 2004 05:05 EST
I am having a JSP which holds 10 text boxes and an 'addLine' button , if one clicks the button after populating the given text boxes then additional 10 text boxes will be appended. I am using STRUTS framework , and in which the action form i am having 10 set and get methods to hold the values of the textboxes, my question is , upon clicking of 'addline' button 10 new text boxes will get added up , then how to handle the values of the new textboxes in the action form which has only 10 Setter and Getter methods ?
- problem regarding validation of lines in JSP/STRUTS based form by Duncan Mills on November 09 2004 08:18 EST
If these are logical records and you're adding more of them then you should be using indexed properties in your Form Bean, then you'll only have a single getter and setter: