I use Lucas's suggestion, but still can not get value out
please advise how to get list member of an class from stack. thanks in advance john <s:iterator id="partxref" value="partxrefs"> <s:property value="xref_type_code"/> </s:iterator> ________________________________ From: john lee <sh_thorn_b...@yahoo.com> To: struts support <user@struts.apache.org> Sent: Friday, June 28, 2013 11:15 PM Subject: class has set member, how s:iterator to access it? i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part. class Part { String manufacture; String pid; private Set<Partxref> partxrefs=new HashSet<Partxref>(); /* set, get .....here */ } Class Partxref { Part part; int xref_type_code; /* set, get....here */ } public class PartsearchAction ...... { ArrayList<Part> parts; public void setParts(ArrayList<Part> parts) { this.parts=parts; } public ArrayList<Part> getParts() { return parts; } .... } in my jsp, the following works <s:iterator id="part" value="parts" status="st"> <s:property value="pid"/> <s:property value="manufacture.manu_name"/> </s:iterator> but, i try to access partxref {component(subset) } of parts, failed. <s:iterator id="part" value="parts" status="st"> <s:property value="pid"/> <s:property value="manufacture.manu_name"/> <s:iterator id="partxref" value="#part.partxrefs"> <s:property value="#partxref.xref_type_code"/> </s:iterator> </s:iterator> Please advise how to make set member (partxref) of Part works, thanks in advance john