Have you found any good examples of the indexed properties? Unlike the previous poster, I have read the indexed properties documentation on the struts site and found it to be an abortion.
I have been trying for days to get indexed properties to work they way it seems they should, but there is something I am missing.
I have an object, call it ParentClass. It has properties key (getKey, setKey) and child (getChild, setChild) which is of type ChildClass.
There is another object, call it ChildClass. It also has a property key (getKey, setKey). Each parent has one and only one child.
I have an ActionForm that has property Parents which is a List.
I have an action that finds the Parents I want and puts them in a list and, on my ActionForm, setParents(listOfParents).
So far, so good.
Now, in my JSP, when I try to loop over the parents via
<c:forEach var="aParent" items="${ActionForm.parents}">
I want to set a hidden html field via
<html:hidden property="key" indexed="true"/>
And I want to set a html text field to the child key via
<html:text property="child.key" index="true"/>
But I get an error " No getter method for property key of bean org.apache.struts.taglib.html.BEAN".
Where am I going wrong?