Hello friends,
I am trying to use html:select tag with html

ptions but unable to use it.
i have one
jsp page, one form class, in my form class i have following method
public Iterator getCountryList()
{
System.out.println("i am in getCountryList");
ArrayList country = new ArrayList();
country.add("India");
country.add("USA");
country.add("UK");
country.add("Gremany");
country.add("France");
countryList = country.iterator();
return countryList;
}
following is the code i used in my jsp page
<html:select property="countryList">
<html

ptions collection="user"/>
</html:select>
Here user is a bean which is bound in session and contains countryList as a variable(apart from form class)
actually i am very much confused about these attributes, and not able to use them ptoperly
I am getting following error
javax.servlet.jsp.JspException: Cannot create iterator for app.LogonForm@14dc
thanx