Hi,
Forgive me if this isn't the correct forum to post in.
I have a problem with a drop down list that i am trying to display on screen. The information is selected
from a databse table and then populates an ArrayList. This ArrayList will then be used to populate the
drop down list. However, the drop down list is not rendered on screen even tho the ArrayList has 31
elements in it. Can anyone help please?
// drop down list. Here i have the property "advert" in the options since that is the ArrayList being used
// to popluate the drop down list and the "advertType" is the property being used to handle the input from
// the drop down list.
<td>
<html:select name="advertType">
<html:options property="advert" value="value" labelProperty="label"/>
</html:select>
</td>
// code used for ArrayList
...
public String advertType = "";
ArrayList<LabelValueBean> advert = new ArrayList<LabelValueBean>();
...
while(rs.next()) {
advert.add(new LabelValueBean(rs.getString("NAME"),rs.getString("ADVERT_ID")));
}