public class MyForm extends ActionForm {
private
String myCategory = null;
private List myCategoryList = null;
}
final List CATEGORY_LIST;
List categories = null;
categories = //populate_list_of_strings();
CATEGORY_LIST = Collections.unmodifiableList(categories);
myformobject.setMyCategoryList(CATEGORY_LIST);}
<html:select name="?" property="??">
<html
ptions name="???" property="???"/> </html:select>
can someone help me in filling up
? - name of the form bean which you have mentioned in struts-config.xml file. That is: <form-bean name = "XXXXX" type = "MyForm" ></form-bean>
In t his example ? -
?? - myCategoryList
??? - XXXXX
and ??? - myCategoryList