jsp:
<nested:iterate id="paymentPhaseUpload" property="phaseList" name="resubmitHkForm" indexId="ind">
<nested:nest property="paymentPhase">
<tr>
<td><nested:text property="phaseName" size="10"></nested:text> </td>
<td><nested:text property="phasePayValue" size="10"></nested:text> </td>
<td><nested:text property="phasePayRate" size="10"></nested:text> </td>
<td> </td>
</tr>
</nested:nest>
</nested:iterate>
如果在form中初始化一些数据,比如说在form的构造方法中:
public ResubmitHkForm(List<PaymentPhase> phaseList)
{
this.phaseList=phaseList;
}
phaseList中包含一些数据,form保存在request中后再转到jsp页面时,会出现下面的exception:
No getter method for property phaseList[0].paymentPhase.phaseName of bean resubmitHkForm;
各路豪杰,如何解决该问题。
------解决方案--------------------
帮你顶。