public void setProperty(String newPropValue); public String getProperty();
you have
public void setProperty(String newPropValue, int arrIndex); public String getProperty(int arrIndex);
The property names in your JSP pages would look like 'property[34]'.
I don't use these very much, so that's about the end of what I can come up with off the top of my head this morning, but it should get you started.
-- Jeff
krishna mohan d wrote:
Hi,
I am struck in the middle of one web application. I am using struts 1.1 framework.
I have a form where I have nearly 12 text boxes per row, which are generated dynamically.
means I have a form where I have 12 text boxes per row and I am assigning name dynamically.[I am using plain jsp and javascript]. The number of text boxes depends on the value fetched from database.
suppose if my database value is 10, my form will be having 12 [Textboxes per row] * 10[no. of rows] = 120 textboxes. if the database value is 5, I will be having 60 textboxes.
my question is How to write the action form.
I think it is a bad programming to write 120 properties and 240 methods [getter and setter].Also beacuse the textboxes changes depending on the database value, I think I cannot define 60 / 120 /200 properties and getter and setter methods.
How to handle this situation and submit the data entered by user to the action form, get them into Action class.
Any help on this is appreciated.
Thanks
Krishna.
Yahoo! India Matrimony: Find your life partneronline.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]