You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Phillip Qin <pq...@shareowner.com> on 2003/05/07 14:50:40 UTC
nested tag level
I have an ActionForm class
MyActionForm
private Collection myCollection;
private MyChildForm2 child2;
collection is an ArrayList of MyChildFomr1.
MyChildForm1
private String myChild1Property;
MyChildForm2
private String myChild2Property;
In my jsp page
<nested:iterate property="collection" id="child1">
// here, I want to do a conditional check on
myChildForm2.myChild2Property
<nested:match property="../myChildForm2/myChild2Property"
value="somevalue">
<nested:write property="myChild1Property"/>
</nested:match>
</nested:iterate>
I got an error, cannot find get for myChild2Property for MyActionForm. My
question is how do I refer to another property that is outside of this nest?