It depends what you have as an underlaying collection:
users[0] in case of arrays, lists;
or in worst case scenario use:
users.{^ true==true}Check the OGNL: http://wiki.opensymphony.com/display/WW/OGNL http://wiki.opensymphony.com/display/WW/OGNL+Basics Lukasz TonyD wrote: > > I'm working with structs 2.0.6 and a populate a list of users from a > database. > How can I select the first item of the list (the first user) with > a value option? > > > Thanks for any help, regards > -- View this message in context: http://www.nabble.com/How-to-select-the-first-item-of-a-list.-tf3975318.html#a11287971 Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
