On Fri, 17 Oct 2003, Balakrishnan, Vijay wrote:
I want to use a break in a c:forEach as follows:
c:forEach items=${lecContacts} var=lecContactFirst varStatus=status
c:choose
c:when test=${status.first}
c:set var=lecContactId value=${lecContactFirst}/
If you just want the first item in the collection you might be able to use:
c:forEach items=${lecContacts} var=lecContactFirst begin=0 end=0
c:set var=lecContactId value=${lecContactFirst}/
/c:forEach
this should iterate over only the first item and then end (i hope).
Or else you might try
I have a relatively basic question, and I expect someone who has been using
taglibs with eclipse to be able to answer it. I have very recently started
using eclipse, JSP and taglibs so please excuse me if you find this question
trivial. I have looked in the archives and couldn't find the answer, I