The latter method would be the correct !
You could for clarity write the type of the id="myString" which is the
object you access in every iteration and it would be required for other
custom objects
<logic:iterate id="myString" name="myform"
property="ListofStringobjects"  type=java.lang.String>
   <bean:write name="myString"/>
</logic:iterate>

/Tommy
-----Oprindelig meddelelse-----
Fra: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] 
Sendt: 10. marts 2004 06:21
Til: Struts Users Mailing List
Emne: Re: Iterating List


How about this ?

<logic:iterate id="myString" name="myform"
property="ListofStringobjects" >
   <bean:write name="myString"/>
</logic:iterate>


Ramadoss Chinnakuzhandai wrote:

>finally I got the following working..
>
><logic:iterate id="list" name="myform" property="ListofStringobjects" >

><bean:define id="xyz" name="list" type="java.lang.String"/> 
></logic:iterate>
>
>-Ramadoss
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to