Hello ,
Thanx for the reply...
I was actually wondering if following expression will work also
<bean:write name="myBean" property="vector[0].myProperty"/> ?
assumed that my bean has a method called getVector which returns a
Collection......
actually I am not sure if it will work if I use a Collection instead of
a Vector...
regards
marco
-----Original Message-----
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: 06 December 2004 17:58
To: Struts Users Mailing List
Subject: RE: getting value of object in a collection via tag
I believe:
<c:out value="${x[0]}"/>
will work.
> -----Original Message-----
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 06, 2004 10:54 AM
> To: 'Struts Users Mailing List'
> Subject: getting value of object in a collection via tag
>
>
> Hi all,
> 'silly' question...but if I have an ActionForm
> which has a Property of type Vector, how can I say
> 'print property x' of the first element?
>
> Thanx and regards
> marco
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]