看你的Action 是怎么写的,如果是用类似DynaActionForm.get("propertyname");的方法,要在对应的Form中定义相应的property.

解决方案 »

  1.   

    直接String checkbox1=request.getParameter("checkbox1");不行吗?
      

  2.   

    为什么我在STRUTS中用HTML标记<input type="checkbox" name="del" value="x">,在action中得不到标记?
      

  3.   

    你的formbean是怎么写的呢?是否有复选框property?
      

  4.   

    String[] checkbox1=request.getParameterValues("checkbox1");
      

  5.   

    同意楼上的,复选框要用request.getParameterValues()方法接值
      

  6.   

    <input type="checkbox" name="checkFactoryInfoId" value="<bean:write name='factoryInfo' property='factoryinfoid'/>">  
    <a href="javascript:ondown(this)"><strong>全选</strong></a>
    function ondown(obj)
    {    
     for (var i=0;i<document.form.length;i++)
      {  
        var e = document.form[i];
        var aa = e.name.substring(0,18)// 18是checkFactoryInfoId的长度
        if(aa=="checkFactoryInfoId")
        {    
          e.checked = true;
        }
     }
    }
    form 里面要定义个  private Long[] checkFactoryInfoId;
    action 接收 Long[] checkFactoryInfoId= form.getCheckFactoryInfoId();