我用如下方法:
在ActionForm增加private List myList = new ArrayList();myList对应 JSP页面上的 myList select控件,
程序出错:javax.servlet.ServletException: BeanUtils.populate
在ActionForm增加private List myList = new ArrayList();myList对应 JSP页面上的 myList select控件,
程序出错:javax.servlet.ServletException: BeanUtils.populate
我是想实现传递一组数据给Actionform,有什么好方法吗?
private String selectedValue;
private String[] optionValues;
private String[] labelValues;
}页面
<html:select property="selectedValue">
<html:options property="optionValues" labelProperty="labelValues"/>
</html:select>这样应该可以
<html:select property="" multipe="true">
<html:options collection="Collection"
property="key"
labelPerty="value">
</html:options></html:select>
String a;
String[] getA(){}
void setA(){}
}