You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tamilselvan Radha Krishnan <Ta...@igate.com> on 2006/12/01 09:09:34 UTC

List box using ArrayList objects.

Hi All,
I've an ArrayList that contains EmployeeID String objects.  I need to
show the List box from this ArrayList with List value and Key being the
same EmployeeID.
Any sample code would be much helpful. 

Regards

Tamil


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Re: List box using ArrayList objects.

Posted by Puneet Lakhina <pu...@gmail.com>.
On 12/1/06, Tamilselvan Radha Krishnan <Ta...@igate.com>
wrote:
>
> Hi All,
> I've an ArrayList that contains EmployeeID String objects.  I need to
> show the List box from this ArrayList with List value and Key being the
> same EmployeeID.
> Any sample code would be much helpful.


<html:select property="foo">
 <html:options name="listAttributeName" property="employeeId"
labelProperty="employeeId">
</html:select>

This is assuming you the objects you have in your arraylist are of type
employee which is something like this

class Employee {
String employeeId;
//getter setters
}

Regards
>
> Tamil
>
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Information transmitted by this EMAIL is proprietary to iGATE Group of
> Companies and is intended for use only by the individual
> or entity to whom it is addressed and may contain information that is
> privileged, confidential, or exempt from disclosure under
> applicable law. If you are not the intended recipient of this EMAIL
> immediately notify the sender at iGATE or mailadmin@igate.com
> and delete this EMAIL including any attachments
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
>


-- 
Puneet