The quick solution is to create ArrayList have an index corresponding to your holidexCodeVector.
The logic is like, once the user selects the "BLUES" or "IHG" you can match these String values with the index in ArrayList. Hope this work out in your case. Kind regards, Rakesh Bhat -----Original Message----- From: Chetan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 10:27 AM To: 'Struts Users Mailing List' Subject: HTML Tags for JComboBox Importance: Low Hi List: I am using a JComboBox in the following manner: <tr> <td><bean:message key="attendee.holidexCode"/>:</td> <td> <html:select property="attendeeVO.holidexCode" > <html:options name="holidexCodeVector" /> </html:select> </td> </tr> Where holidexCodeVector is a Vector of Strings ( e.g. "BLUES", "IHG", "SINGTEL" etc ) I only want the index of the chosen item, not the String. For examples if User chose "IHG" I should get integer 1 , not the String "IHG" How is this possible as the underlying data structure is a "int" not String. Thanks. Chetan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]