I am using Struts 1.3.8. I have a jsp with multiple included jsps. There are many input fields that are arrays and the user can click "addrow" and get an empty row for that field. All the "adds" with a single array work fine. I need an array of Paths that can each contain an array of segments. Adding a blank Path is working. But, I get the error of cannot find bean if I try to add a blank segment row. The code format that I used was copied from an existing app that allows users to update fields, but not add a new row. I am really stumped. I have not been able to find an answer to this. Any help would be appreciated. Thanks.
Below is snippets of code for the jsps, struts-config, classes.
11:57:41,713 - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Cannot find bean: "pathDetailId.segmentDetailId" in any scope
I have this working now. I removed the name= from the inside iterate nested:text. I let struts determine the name. When I view the source, I can see that the name is pathsegment.bandwidth, etc. So, I don't get the "can't find bean error". But, then I got index out of bounds on the beanUtil.populate getIndexedProperty. This occurs because it can't find the pathArray when returning from the action class after adding a blank segment row. I changed the scope in the struts-config to be session instead of request. It is correctly writting to the database and returns to the jsp with the correct data.