Jump to content

using the struts iterator

Recommended Posts

I'm using a struts iterator to display various properties from a handful of beans within an array, but each bean also contains a vector of bean objects. I'm not sure how to access these properties within the vector of each bean object.Here is my struts code so far. the subjectName works fine. I put a comment for where I need to iterate through the vector.

<s:iterator value="classificationObjects" status="classifObjStatus">	 <s:property value="subjectName" />	 <%-- here i need to iterate through the vector called 'children' contained in each bean within classificationObjects[] --%></s:iterator>

Anyone have any ideas?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...