You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dean A. Hoover" <dh...@rochester.rr.com> on 2004/05/05 14:02:21 UTC

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: inserting delimiters

Posted by James Watkin <ja...@anderson.ucla.edu>.
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:dhoover@rochester.rr.com]
>>>Sent: Wednesday, May 05, 2004 8:02 AM
>>>To: struts-user@jakarta.apache.org
>>>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: user-unsubscribe@struts.apache.org
>>>For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>

______________________________
James Watkin
ACIS Software Development
The Anderson School at UCLA
james.watkin@anderson.ucla.edu
Voice: 1-310-825-5030
   Fax: 1-310-825-4835
______________________________ 


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


RE: inserting delimiters

Posted by Robert Taylor <rt...@mulework.com>.
JSTL Spec:
http://jcp.org/aboutJava/communityprocess/final/jsr052/index2.html


The following code runs in my 2.4 Servlet container.
and produces the output:

0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9
0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9

<%@ page import="java.util.ArrayList"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
ArrayList outer = new ArrayList();
for (int i = 0; i < 10; i++) {
	ArrayList inner = new ArrayList();
	
	for (int j = 0; j < 10; j++) {
	
		inner.add(String.valueOf(j));
	
	}
	
	outer.add(inner);		
}
request.setAttribute("outer", outer);

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>JSTL Nested Loop</title>
</head>

<body>

<c:forEach var="list" items="${outer}" varStatus="outerStatus">
<c:if test="${!outerStatus.first}"><br/></c:if>
  <c:forEach var="item" items="${list}" varStatus="status">
    <c:if test="${!status.first}">/</c:if>
	<c:out value="${item}"/>
  </c:forEach>
</c:forEach>

</body>
</html>

robert

> -----Original Message-----
> From: Dean A. Hoover [mailto:dhoover@rochester.rr.com]
> Sent: Wednesday, May 05, 2004 8:48 PM
> To: Struts Users Mailing List
> Subject: Re: inserting delimiters
> 
> 
> Thanks again. Where is the spec?
> I tried what you gave me, slightly edited, as follows:
> 
> <c:forEach var="v" items="${categoryLineages}" varStatus="outerStatus">
> <c:if test="${!outerStatus.first}"><br/></c:if>
> <c:forEach var="seriesCat" items="${v}" varStatus="status">
> <c:if test="${!status.first}">/</c:if>
> <c:out value="${seriesCat.safeTitle}"/>
> </c:forEach>
> </c:forEach>
> 
> I get the following exception:
> [ServletException in:/WEB-INF/tiles/content/misc/EditSeries.jsp] 
> /WEB-INF/tiles/content/misc/EditSeries.jsp(21,0) According to TLD or 
> attribute directive in tag file, attribute items does not accept any 
> expressions' org.apache.jasper.JasperException: 
> /WEB-INF/tiles/content/misc/EditSeries.jsp(21,0) According to TLD or 
> attribute directive in tag file, attribute items does not accept any 
> expressions at 
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83) 
> at
> 
> Know what's wrong?
> 
> Robert Taylor wrote:
> 
> >There are several good references on line for learning JSTL, 
> >but I have found the actual spec itself to be great.
> >
> >I'm assuming you want something like
> ><br>AAA/BBB/CCC<br>DDD/EEE/FFF
> >etc...
> >
> ><c:forEach var="v" items="${vectors}">
> ><br>
> ><c:forEach var="seriesCat" items="${v}" varStatus="status">
> ><c:if test="${!status.first}">/</c:if>
> ><c:out value="$(seriesCat}"/>
> ></c:forEach>
> ></c:forEach>
> >
> >To avoid the first <br>, use the same logic as the inner loop:
> >
> ><c:forEach var="v" items="${vectors}" varStatus="outerStatus">
> ><c:if test="${!outerStatus.first}"><br></c:if>
> ><c:forEach var="seriesCat" items="${v}" varStatus="status">
> ><c:if test="${!status.first}">/</c:if>
> ><c:out value="$(seriesCat}"/>
> ></c:forEach>
> ></c:forEach>
> >
> >should produce something like:
> >
> >AAA/BBB/CCC<br>DDD/EEE/FFF
> >etc...
> >
> >BTW, this code is untested, but it should work.
> >
> >robert
> >
> >  
> >
> >>-----Original Message-----
> >>From: Dean A. Hoover [mailto:dhoover@rochester.rr.com]
> >>Sent: Wednesday, May 05, 2004 8:01 PM
> >>To: struts-user@jakarta.apache.org
> >>Subject: Re: inserting delimiters
> >>
> >>
> >>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:dhoover@rochester.rr.com]
> >>>>Sent: Wednesday, May 05, 2004 8:02 AM
> >>>>To: struts-user@jakarta.apache.org
> >>>>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: user-unsubscribe@struts.apache.org
> >>>>For additional commands, e-mail: user-help@struts.apache.org
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>    
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


Re: inserting delimiters

Posted by "Dean A. Hoover" <dh...@rochester.rr.com>.
Thanks again. Where is the spec?
I tried what you gave me, slightly edited, as follows:

<c:forEach var="v" items="${categoryLineages}" varStatus="outerStatus">
<c:if test="${!outerStatus.first}"><br/></c:if>
<c:forEach var="seriesCat" items="${v}" varStatus="status">
<c:if test="${!status.first}">/</c:if>
<c:out value="${seriesCat.safeTitle}"/>
</c:forEach>
</c:forEach>

I get the following exception:
[ServletException in:/WEB-INF/tiles/content/misc/EditSeries.jsp] 
/WEB-INF/tiles/content/misc/EditSeries.jsp(21,0) According to TLD or 
attribute directive in tag file, attribute items does not accept any 
expressions' org.apache.jasper.JasperException: 
/WEB-INF/tiles/content/misc/EditSeries.jsp(21,0) According to TLD or 
attribute directive in tag file, attribute items does not accept any 
expressions at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83) 
at

Know what's wrong?

Robert Taylor wrote:

>There are several good references on line for learning JSTL, 
>but I have found the actual spec itself to be great.
>
>I'm assuming you want something like
><br>AAA/BBB/CCC<br>DDD/EEE/FFF
>etc...
>
><c:forEach var="v" items="${vectors}">
><br>
><c:forEach var="seriesCat" items="${v}" varStatus="status">
><c:if test="${!status.first}">/</c:if>
><c:out value="$(seriesCat}"/>
></c:forEach>
></c:forEach>
>
>To avoid the first <br>, use the same logic as the inner loop:
>
><c:forEach var="v" items="${vectors}" varStatus="outerStatus">
><c:if test="${!outerStatus.first}"><br></c:if>
><c:forEach var="seriesCat" items="${v}" varStatus="status">
><c:if test="${!status.first}">/</c:if>
><c:out value="$(seriesCat}"/>
></c:forEach>
></c:forEach>
>
>should produce something like:
>
>AAA/BBB/CCC<br>DDD/EEE/FFF
>etc...
>
>BTW, this code is untested, but it should work.
>
>robert
>
>  
>
>>-----Original Message-----
>>From: Dean A. Hoover [mailto:dhoover@rochester.rr.com]
>>Sent: Wednesday, May 05, 2004 8:01 PM
>>To: struts-user@jakarta.apache.org
>>Subject: Re: inserting delimiters
>>
>>
>>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:dhoover@rochester.rr.com]
>>>>Sent: Wednesday, May 05, 2004 8:02 AM
>>>>To: struts-user@jakarta.apache.org
>>>>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: user-unsubscribe@struts.apache.org
>>>>For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>> 
>>>
>>>      
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>



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


Posted by Julia Weaver <dr...@yahoo.com>.
Hi,

Please help, I have following in the jsp:

<html:select property="idCode">
					   <html:option value="T ">T</html:option>
					   <html:option value="C ">C</html:option>
					   <html:option value="D ">D</html:option>
					   <html:option value="E ">E</html:option>
					   <html:option value="L ">L</html:option>

</html:select>


But when I select any value from drop down, it always
get the first option value (which is "T ", such as the
following) and saved to the database, could you please
help me?



<select name="idCode">
<option value="T " selected="selected">T</option>
<option value="C ">C</option>
<option value="D ">D</option>
<option value="E ">E</option>
<option value="L ">L</option>		
</select> 


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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


RE: inserting delimiters

Posted by Robert Taylor <rt...@mulework.com>.
There are several good references on line for learning JSTL, 
but I have found the actual spec itself to be great.

I'm assuming you want something like
<br>AAA/BBB/CCC<br>DDD/EEE/FFF
etc...

<c:forEach var="v" items="${vectors}">
<br>
<c:forEach var="seriesCat" items="${v}" varStatus="status">
<c:if test="${!status.first}">/</c:if>
<c:out value="$(seriesCat}"/>
</c:forEach>
</c:forEach>

To avoid the first <br>, use the same logic as the inner loop:

<c:forEach var="v" items="${vectors}" varStatus="outerStatus">
<c:if test="${!outerStatus.first}"><br></c:if>
<c:forEach var="seriesCat" items="${v}" varStatus="status">
<c:if test="${!status.first}">/</c:if>
<c:out value="$(seriesCat}"/>
</c:forEach>
</c:forEach>

should produce something like:

AAA/BBB/CCC<br>DDD/EEE/FFF
etc...

BTW, this code is untested, but it should work.

robert

> -----Original Message-----
> From: Dean A. Hoover [mailto:dhoover@rochester.rr.com]
> Sent: Wednesday, May 05, 2004 8:01 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: inserting delimiters
> 
> 
> 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:dhoover@rochester.rr.com]
> >>Sent: Wednesday, May 05, 2004 8:02 AM
> >>To: struts-user@jakarta.apache.org
> >>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: user-unsubscribe@struts.apache.org
> >>For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>    
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


Re: inserting delimiters

Posted by "Dean A. Hoover" <dh...@rochester.rr.com>.
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:dhoover@rochester.rr.com]
>>Sent: Wednesday, May 05, 2004 8:02 AM
>>To: struts-user@jakarta.apache.org
>>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: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>



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


RE: inserting delimiters

Posted by Robert Taylor <rt...@mulework.com>.
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:dhoover@rochester.rr.com]
> Sent: Wednesday, May 05, 2004 8:02 AM
> To: struts-user@jakarta.apache.org
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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