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 -----Original Message----- From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 8:35 PM To: Struts Users Mailing List Subject: Re: Iterating List Try <logic:iterate> (http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) and <bean:write> (http://jakarta.apache.org/struts/userGuide/struts-bean.html#write). Look at mail archive (http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). I think somebody has been sent a question like yours. I hope this helps you... Ramadoss Chinnakuzhandai wrote: >I need to iterate and display collection object "List" containing objects of type >"String" in my JSP, I know that if the collection is of type Array I can index and >get all the objects but is there anyway I can iterate this List object and disply >its String objects in my JSP(without having to convert the list to Array). > >Thanks for your help > >-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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]