我用如下方法:
 在ActionForm增加private List myList = new ArrayList();myList对应 JSP页面上的 myList select控件,
程序出错:javax.servlet.ServletException: BeanUtils.populate

解决方案 »

  1.   

    补充:
       我是想实现传递一组数据给Actionform,有什么好方法吗?
      

  2.   

    定义成数组,而不要定义成list应该可以获取吧,你的select是多行提交的不?
      

  3.   

    class MyForm extends ActionForm{
        private String selectedValue;
        private String[] optionValues;
        private String[] labelValues;
    }页面
    <html:select property="selectedValue">
        <html:options property="optionValues" labelProperty="labelValues"/>
    </html:select>这样应该可以
      

  4.   

    我觉得要这样写
    <html:select property="" multipe="true">
     <html:options collection="Collection" 
                   property="key"    
                   labelPerty="value">
      </html:options></html:select>
      

  5.   

    class{
     String a;
    String[]  getA(){}
       void setA(){}
    }