如题,(项目环境Struts 1.2)。。。今天做功能时,遇到了一个问题,bean:write标签抛异常。我把没用的代码全去掉了,代码如下
后台action的
public ActionForward recharge(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)throws GeneralException{
AcCrpayTransInchargeBean bean = new AcCrpayTransInchargeBean();
List<AcCrpayTransIncharge> list = new ArrayList<AcCrpayTransIncharge>();
AcCrpayTransIncharge po = new AcCrpayTransIncharge();
po.setTransId("1111111111");
list.add(po);
request.setAttribute("this_list", list);
return mapping.findForward("recharge");
}
页面展示部分代码:
<logic:notEmpty name="this_list">
<logic:iterate id="list" name="this_list" indexId="index">
<tr>
<td>
<bean:write name="list" property="transId" />
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
然后就抛出错误
求助,为什么会这样。。。之前用的都好好的