How about this example? where PersonListForm is the ActionForm subclass.
 
  <strutslogic:iterate id="element" name="PersonListForm" property="persons">
    <tr >
    <td><bean:write name="element" property='personalName'/></td>
    <td><strutshtml:text name="element" property="personalName" /></td>
    <td><strutshtml:text name="element" property="userID" /></td>
    <td><strutshtml:text name="element" property="domainName" /></td>
  </tr>
  </strutslogic:iterate>
----- Original Message -----
Sent: Tuesday, October 02, 2001 2:02 PM
Subject: IM IN DESPARATE NEED OF SOME HELP USING THE ITERATE TAG!!!

Hi,

I have a bean that encapsulates the properties needed to render an image (border, height, width etc).

I want to able to use the values stored in this bean as attribute values for the struts img tag.

Eg

ArrayList images = new ArrayList();

images.add( new Image( "pix1", "22", "43" ) );
images.add( new Image( "pix1", "22", "43" ) );
images.add( new Image( "pix1", "22", "43" ) );

.    .    .    .     .    .    .    .

My Image class is a bean with the appropriate accessors and mutators.

I then want to do the following

<logic:iterate ...name="images" id="img". .. ..>

     <html:img name=?? height=?? width=?? />

</logic:iterate>

I do have the array list stored in a scope that my jsp page can acess. I don't know if this is possible.

Thanks

Chiji




Get your FREE download of MSN Explorer at http://explorer.msn.com


Hi,

I have a bean that encapsulates the properties needed to render an image (border, height, width etc).

I want to able to use the values stored in this bean as attribute values for the struts img tag.

Eg

ArrayList images = new ArrayList();

images.add( new Image( "pix", "22", "43" ) );
images.add( new Image( "pix", "22", "43" ) );
images.add( new Image( "pix", "22", "43" ) );

.    .    .    .     .    .    .    .

I then want to do the following

<logic:iterate ...name="images" id="img". .. ..>

     <html:img name=?? height=?? width=?? />

</logic:iterate>

I do have the array list stored in a scope that my jsp page can acess. I don't know if this is possible.

Thanks

Chiji




Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to