I am using struts2 and hibernate.
I have a jsp page which is loaded upon an action. The related action class returns a list of Objects as rows of a table stored in a database.
When the the page loads (with all the rows stored in the list), i want the data of each row and also the each of the corresponding values of columns displayed in separate textboxes, each having a different id. For example, the list has 15 objects (as rows of a table) and each object in the list have 10 attributes (as columns) then i want 10*15 = 150 textboxes each with different ids.
How can i achieve this? With <s:iterator> and <s:property> i can have only 10 text boxes (which is equal to the number of columns, as we can hav only 10 no of <s:property>)..?
Any help will be greatly appreciated.
Although, I think this is a bad design. Try using dataTable or even a simple table.