<logic:iterate id="reason" name="carMerage" property="formIDs"> <tr> 
                                    <td width="30%">航班号:</td>
                                    <td class="c11"><input name="app_flightno" type="text" class="inputsmall02" value="<bean:write filter='true' name='reason' property='app_flightno'/>"> 
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td>航班起点:</td>
                                    <td class="c11"> <input name="app_flightfrom" type="text" class="inputsmall02" value="<bean:write filter='true' name='reason' property='app_flightfrom'/>"> 
                                    </td>
                                  </tr>
                                  <tr> 
                                    <td>航班终点:</td>
                                    <td class="c11"><input name="app_flightto" type="text" class="inputsmall02" value="<bean:write filter='true' name='reason' property='app_flightto'/>"></td>
                                  </tr>
                                  <tr> 
                                    <td height="1" colspan="2" ></td>
                                  </tr>
</logic:iterate

解决方案 »

  1.   

    这些property都能正确的调用,<bean:write name="carMerage" property="propertyName" />就能够调用出来,只不过由于是数组,显示不正常
      

  2.   

    首先,carMerge要求是collection类型,或者是vector类型,或者是ArrayList,
    你需要把数组转换成上述类型.然后再用.
      

  3.   

    你的carMerage 应该是一个formIDs组成的数组吧那么可以用一个循环大概是这个样子
    ArrayList list = new ArrayList(); for(i=0;i<carMerage.length;i++){    formIDs formids= new formIDs();
        formids = carMerage[i];
        list.add(formids);
    }    
      

  4.   

    carMerage是一个AciontForm,FormIDs,app_flightno,app_flightfrom,app_flightto都是它的属性,它们都是数组。<logic:iterate>标签中的property可以用数组(struts文档上有)。