Thanks Robert. It looks like I need to learn JSTL. Any suggestions? Also, the original problem I posted has changed a little. I am now stuffing a Vector of Vectors of SeriesCategory (my object). SeriesCategory has a getSafeTitle() method that gets an XML safe character string title for the category. This is a little like the problem I posted, except that the outer loop needs a <br/> delimiter and the inner loop needs the / delimiter. What might that look like?
Robert Taylor wrote:
One solution would be the following:
<c:forEach var="item" items="items" varStatus="status"> <c:if test="${!status.first}">/</c:if> <c:out value="$item"/> </c:forEach>
robert
-----Original Message----- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 8:02 AM To: [EMAIL PROTECTED] Subject: inserting delimiters
I have a Collection of Strings that I want to render with delimiters. Suppose The Strings are "AAA", "BBB", and "CCC". For example, I want to delimit the strings with /
So the insertion would look like this: AAA/BBB/CCC
How would you recommend I go about it? If I were doing this in Java instead of JSP I would treat the first pass through the loop as a special case. I'm not sure how to do this with the logic or JSTL tags.
Thanks. Dean Hoover
--------------------------------------------------------------------- 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]