楼主按照下面的方式配一下就可以了在页面上
<form>
<input type="checkbox" name="id" value="1"/>号码1
<input type="checkbox" name="id" value="2"/>号码2
<input type="checkbox" name="id" value="3"/>号码3
</form>struts-config.xml
<form-bean>
<form-property name="id" type="java.lang.Integer[]"/>
</form-bean>action中
Integer[] ids = (Integer[])actionform.get("id");

解决方案 »

  1.   

    看看是不是get函数写的有问题
    跟踪一下。multibox返回的是一个字符串类型的数组public class HelloForm extends ActionForm{
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String nums[]=new String[0];
    public String[] getNums() {
    return nums;
    } public void setNums(String[] nums) {
    this.nums = nums;
    }
      

  2.   

    你可以参考一下我的代码:JSP:
    <logic:iterate id="localList" name="localList">
    <html:multibox property="chck">
    <bean:write name="localList" property="localId"/>
    </html:multibox>
    <bean:write name="localList" property="localName"/>
    </logic:iterate>FormBean:
    String[] chck
    get/setAction:
    String[] chck=reserveForm.getChck();