多层迭代,List 中嵌套bean应如何写?

来源:互联网 发布:手机上怎么开淘宝网店 编辑:程序博客网 时间:2024/05/23 22:54

jsp:

 <logic:present name="saleOppForm" property="lstRummeryQuote" scope="request">
   <logic:iterate id="rummeryQuote" name="saleOppForm" property="lstRummeryQuote" indexId="rowIndex">
    <tr>
       <logic:iterate id="column" name="rummeryQuote" property="rowRummeryQuote" indexId="columnIndex">
             <td width="98" valign="top" class="whitetd"><html:text property="useRoomCount" size="10"></html:text></td>
             <td width="98" valign="top" class="whitetd"><html:text property="sumRoomPrice" size="10"></html:text></td>
    <td width="91" id="tdFunction0" class="whitetd">
     <!-- <input type='button' onClick='deleteRow(0)' id="btnDelRow000" class='btnDel'> -->
     <html:button onclick="createRow()" property="btnCreateRow" styleClass="btnCreate">
     </html:button>
    </td>
      </logic:iterate>
    </tr>
  </logic:iterate>
 </logic:present> 

SaleOppForm;

 private List lstRummeryQuote;
 public SaleOppForm() { 
  lstRummeryQuote  =  new  ArrayList(); 
        //页面初始显示一行
  lstRummeryQuote.add(rowRummeryQuote);
  //lstRummeryQuote.add(new  RowRummeryQuote());
 }

RowRummeryQuote(dataset):


 private String useRoomCount;
 private String sumRoomPrice;

异常:javax.servlet.ServletException: No getter method for property rowRummeryQuote of bean rummeryQuote

多层迭代,List 中嵌套bean,这样迭代不对吗?应如何写呢?请高手指教

原创粉丝点击