Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 91961 invoked by uid 500); 24 Aug 2001 05:34:20 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 91954 invoked from network); 24 Aug 2001 05:34:19 -0000 Received: from unknown (HELO yamuna.ctd.hcltech.com) (202.140.153.6) by h31.sny.collab.net with SMTP; 24 Aug 2001 05:34:19 -0000 Received: from kaveri.ctd.hcltech.com (KAVERI [192.168.102.25]) by yamuna.ctd.hcltech.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id Q1C5DNRT; Fri, 24 Aug 2001 11:07:21 +0530 Received: by KAVERI with Internet Mail Service (5.5.2653.19) id ; Fri, 24 Aug 2001 11:04:48 +0530 Message-ID: <71BF63C7F771D511B3C4000021026BA621D644@KAVERI> From: "SUHAS G. KULKARNI" To: struts-user@jakarta.apache.org Subject: RE: Index of an arrayList in a options tag Date: Fri, 24 Aug 2001 11:04:47 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N try Create the LabelValueOptions class having name(put numbers) and value("item text") add them in the arrayList . -----Original Message----- From: Ganendran Kumaraswamy [mailto:Ganendran@eRunway.com] Sent: Friday, August 24, 2001 10:58 AM To: 'struts-user@jakarta.apache.org' Subject: Index of an arrayList in a options tag Hi All, I am using an arraylist to hold some values and display them in a select box as follows. I have created the arraylist in my action class and added some values to it. Then I set it to the form (to the selectList variable). Of course I have the getter and setter methods in my bean and it works fine. My question is, can I display the index of the arraylist as the value property in my option html tag ? How do I do it ? For e.g. I would ideally like the output to be like Cheers, Gane