struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aamir Saalam" <asaa...@cisco.com>
Subject RE: Question on Nesting iterate tags
Date Fri, 08 Feb 2002 21:33:11 GMT
I am *not* sure if i am addressing this question in specific.

Here's an example of Nested logic:iterate tag's:


<%
  String[] array1 = {"A1", "A2", "A3"};
  String[] array2 = {"B1", "B2", "B3"};
  pageContext.setAttribute("Array1", array1, PageContext.PAGE_SCOPE);
  pageContext.setAttribute("Array2", array2, PageContext.PAGE_SCOPE);
%>

<logic:iterate id="array1Ele" name="Array1">
  <logic:iterate id="array2Ele" name="Array2">
    <bean:write name="array1Ele"/> 
    <bean:write name="array2Ele"/> 
  </logic:iterate>
</logic:iterate>


--aamir

-----Original Message-----
From: SUPRIYA MISRA [mailto:supriya_misra@hotmail.com]
Sent: Friday, February 08, 2002 11:16 AM
To: struts-user@jakarta.apache.org
Subject: Question on Nesting iterate tags


How do you nest two iterate tags


<slogic:iterate id="actHour"  name="currentForm"   type= "fal.ActivityHour"  
property="actHourArray">  .
               <slogic:iterate id="actHour1"  name="currentForm" >
               type="fal.LocationHrs"   property="actHour.selected">
               </slogic:iterate>
</slogic:iterate>

Both Collections are Arrays.
Array 1 contains a bunch of Strings and and Array 2. Array 2 contains a 
bunch of Strings. I will have to use text boxes to update for which i plan 
to use the indexed tags.

Any Help would be appreciated. Any links alsp would be helpful

Thanks

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message