Hi group, I'm using Struts 1.2.4 w/ Tomcat 5.5.4. I'm designing a page that contains a grid of cells, like an Excel sheet.
In the grid, there are a couple of cells, which could textboxes. In the JSP, I put the following tags. <table> <tr> <td> <html:select property="project[0]"> <html:option value="a">0-19</html:option> <html:option value="b">20-49</html:option> <html:option value="c">50-</html:option> </html:select> </td> <td><html:text property="hour[0][0]"/></td> </tr> <tr> <td> <html:select property="project[1]"> <html:option value="a">0-19</html:option> <html:option value="b">20-49</html:option> <html:option value="c">50-</html:option> </html:select> </td> <td><html:text property="hour[1][0]"/></td> </tr> </table> This is just an example. I want to have a project[] array and a hour[][] array to contain necessary information so that in the backend, I only need to process arrays instead of something like project0, project1, hour00, hour10. I tried to put something as follows in the ActionForm, but no luck. private String[] project = new String[2]; private double[][] hour = new double[2][2]; public double getHour(int i, int j) { return this.hour[i][j]; } public void setHour(int i, int j, double hour) { this.hour[i][j] = hour; } public String getProject(int i) { return this.project[i]; } public void setProject(int i, String project) { this.project[i] = project; } I googled some examples but they are for Struts 1.1. Your help would be appreciated. Thanks. Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]