Did you try "${collection[0]}"? > -----Original Message----- > From: Vinicius Caldeira Carvalho > [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 23, 2004 10:15 AM > To: Struts Users Mailing List > Subject: Struts tags / JSTL question > > > Hi there! > I have a collection of beans, and this collection is set to > the request. > I'd like to retreive only the first object of the collection > (later on > I'll iterate over it completely) How can I do this? My > Collection is a List. I tried <c:set var="bean" > value="${collection.get(0)}"> and also <c:set var="bean" > value="{$collection.iterator.next}"> > > none of 'em seems to work. Any ideas? > > Thanks all > > --------------------------------------------------------------------- > 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]