Hi try adding this method in your ActionForm:


public String getToto(int i) { return (String)toto.get(i); }

The struts logic:iterate will automatically pass in an index value to the method in order to get the object inside the Array.

Hope this works


Francois Boccou wrote:
Hello,

I have a problem displaying on my jsp pages a list of String that is part of
my bean.

Here is my bean:

myBean {
ArrayList toto; //of type String
}


here is my JSP: <nested:iterate name="myBean" property="toto" >

+ <bean:write property="this/" /><br>

</nested:iterate>

This doesn't work, I miss something but I can't find what, someone would
give me a tip ?
Name is a required property for bean:write tag but I really don't know what
as value.

What is the way to iterate a list of String ?

Thanks,
François







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



Reply via email to