> Anybody knows how can I define a script variable with bean
> define tag or another, for the first element of a collection???
>
> for example:
>
> <%
> ArrayList users = (ArrayList)pageContext.getAttribute("users");
> User user = users.get(0);
> %>
<c:set target="user" value="${users[0]}"/>
Not sure exactly how "pageContext" translates, but I think this will do it.
--
Tim Slattery
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]