<nested:iterate property="someCollection" indexId="index"> <logic:notEqual property="index" value="0">,</logic:notEqual> </nested:iterate> .
This should allow you to display commas between each word and then a dot. Sri -----Original Message----- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 5:31 AM To: '[EMAIL PROTECTED]' Subject: Displaying a collection as comma separated values I want to display in my HTML page a collection of Strings, and I want to display a comma between each word and a final dot. I use nested:iterate: <nested:iterate property="bar"> <nested:write property="label", </nested:iterate> It works fine except for the final dot. My question is: in a nested:iterate, how can I know that I am at the end of the iteration? ---cut here--- This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. --------------------------------------------------------------------- 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]