Assuming you have a collection "myList" stored in some scope where
each item in the list has  the "name" and "id" properties:

<html:select property="myValue">
                                    <html:optionsCollection name="myList"
                                                            label="name"
                                                            value="id" />
</html:select>

-Yves-

----- Original Message -----
From: viji.george <[EMAIL PROTECTED]>
Date: Fri, 3 Sep 2004 10:07:24 +0530
Subject: code snippet for <html:optionCollection>
To: [EMAIL PROTECTED]

 
can anybody send me a code sample for using <html:optionCollection>
for getting the value from the ArrayList and populating the combo box.
  
I am storing the values retrieved from the DB in a arraylist in the
form of a class which has 2 attributes one for option value and the
other for text of the option.
  
I want to put these values into the combo box. 
has anybody done this? 
  
  
Viji George
Information Systems,
The Arvind Mills Ltd.,
Naroda, Ahmedabad. 
Phone-(079)22203030
Ext -2352
[EMAIL PROTECTED] 



-- 
For me to poop on!
http://www.formetopoopon.com
http://www.nbc.com/nbc/Late_Night_with_Conan_O'Brien/video/triumph.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to