JSTL in Action
by Shawn Bayern
Paperback: 480 pages ; Dimensions (in inches): 0.97 x 9.32 x 7.50
Publisher: Manning Publications Company; (July 2002)
ISBN: 1930110529
http://www.manning.com/bayern

Shawn Bayern is the reference implementation lead for JSTL. You can hear him speak in a video clip at:
http://www.theserverside.com/events/library.jsp#bayern


Core JSTL: Mastering the JSP Standard Tag Library
by David Geary
Paperback: 608 pages ; Dimensions (in inches): 0.93 x 9.38 x 7.02
Publisher: Prentice Hall PTR; 1st edition (November 26, 2002)
ISBN: 0131001531

- Jim

At 08:01 PM 5/5/2004 -0400, you wrote:
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]



______________________________
James Watkin
ACIS Software Development
The Anderson School at UCLA
[EMAIL PROTECTED]
Voice: 1-310-825-5030
Fax: 1-310-825-4835
______________________________



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



Reply via email to