我用的是struts+tomcat,我在action 中设置了属性传到jsp。但jsp却显示不出来。
action:
CommProc commProc = calendarDao.Insert();
TbwTeCalendarBean returnBean = new TbwTeCalendarBean();
TbwTeCalendarDao returnDao = new TbwTeCalendarDao(returnBean);
List list = returnDao.getAll();
session.setAttribute("CONTENTLIST", list);
jsp:
<logic:iterate id="contentList" name="CONTENTLIST">
<tr bgcolor="#FFFFFF" align="right" height="15">
<td height="15"><html:multibox property="colsTeIdArrayList">
<bean:write name="contentList" property="TE_CHAR_DATE" />$$$ <bean:write name="contentList" property="COMPANY_ID" />$$$ <bean:write name="contentList" property="CONTRACT" />$$$ <bean:write name="contentList" property="indexList" /> </html:multibox></td>
<td height="15" width="300" bgcolor="#FFFFFF"> <html:text name="contentList" />
</td>
action:
CommProc commProc = calendarDao.Insert();
TbwTeCalendarBean returnBean = new TbwTeCalendarBean();
TbwTeCalendarDao returnDao = new TbwTeCalendarDao(returnBean);
List list = returnDao.getAll();
session.setAttribute("CONTENTLIST", list);
jsp:
<logic:iterate id="contentList" name="CONTENTLIST">
<tr bgcolor="#FFFFFF" align="right" height="15">
<td height="15"><html:multibox property="colsTeIdArrayList">
<bean:write name="contentList" property="TE_CHAR_DATE" />$$$ <bean:write name="contentList" property="COMPANY_ID" />$$$ <bean:write name="contentList" property="CONTRACT" />$$$ <bean:write name="contentList" property="indexList" /> </html:multibox></td>
<td height="15" width="300" bgcolor="#FFFFFF"> <html:text name="contentList" />
</td>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货