你的字段属性是变化的,,那么你怎么和你的form对应呢?
这肯定不行的。。你换成<input type="text" name="">去做。。

解决方案 »

  1.   

    我的form里保存的是一个list,这个select里的属性是那个list里的一个对象
      

  2.   

    补充一下,需要在servlet2.3 jsp1.2下运行.
    如果用jsp2.0的话,是可以的.
      

  3.   

    <html:select property="chargetype" style="width:100" onchange="chargeChange()">
    <html:options collection="chargetypes" property="chargeTypeCode" labelProperty="chargeTypeName"/>
    </html:select>
    可以用<logic:present>判断一下那个chargetypes存在不存在.
    chargetypes是通过action查到的List.
    property="",是value值.
    labelProperty是页面显示的值.