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[0].segmentDetailId" in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:864)
at org.apache.struts.taglib.html.CheckboxTag.isChecked(CheckboxTag.java:151)
at org.apache.struts.taglib.html.CheckboxTag.doStartTag(CheckboxTag.java:124)
at org.apache.struts.taglib.nested.html.NestedCheckboxTag.doStartTag(NestedCheckboxTag.java:63)
at org.apache.jsp.dataPath_jsp._jspx_meth_nested_005fcheckbox_005f1(dataPath_jsp.java:822)
at org.apache.jsp.dataPath_jsp._jspService(dataPath_jsp.java:342)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
JSP with multiple included jsps