You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Navjot Singh <na...@net4india.net> on 2003/10/22 06:23:39 UTC

RE: Help needed on Iterate Tag

quick try - try replacing Names with names in iterate tag


>-----Original Message-----
>From: Thakur, Vikram [mailto:vikram.thakur@cgey.com]
>Sent: Wednesday, October 22, 2003 9:55 AM
>To: Struts (E-mail)
>Subject: Help needed on Iterate Tag
>
>
>Hi ,
>	I have Collection of  Strings and I want to print all the values in
>this collection using Iterate Tag.
>	Any guidelines how do I do this ??
>		
>	I had tried to implement it as follows but it is not working.
>
>	<logic:iterate id="element"  name="newCatFormBean" property="Names">
>	  <bean:write name="element" />
>	</logic:iterate>
>
>	Here the getNames() method of my form bean returns a Collection of
>Strings.
>	The bean:write method tries to search for FormBean with "element"
>and I get error.
>	I would really appreciate If someone can help me on this.
>
>Thanks,
>Vikram
>	
>	
>	
>
>____________________________________________________
>This message contains information that may be privileged or 
>confidential and
>is the property of the Cap Gemini Ernst & Young Group. It is intended only
>for the person to whom it is addressed. If you are not the intended
>recipient, you are not authorised to read, print, retain, copy, 
>disseminate,
>distribute, or use this message or any part thereof. If you receive this
>message in error, please notify the sender immediately and delete 
>all copies
>of this message.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org