struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aamir Saalam" <>
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"/> 


-----Original Message-----
Sent: Friday, February 08, 2002 11:16 AM
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">

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


Send and receive Hotmail on your mobile device:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message