这是Action--
private MeanTable mt;
private IMeanTableBiz mb;
private PageBean Pagebean;
private List<MeanTable> list;get.set方法都有的。
public String test() {
HttpServletRequest request = ServletActionContext.getRequest();
String creteDate1=request.getParameter(("creteDate1"));
String creteDate2=request.getParameter(("creteDate2"));
list=this.mb.queryAll(mt, Pagebean, creteDate1, creteDate2);
System.out.println(list);
return "regFailed";
--list.size()是有数据的
}--xml
<package name="sapreport" extends="struts-default" namespace="/sapreport">
<action name="sapReportAction" class="sapReportAction">
<result name="regFailed">/MyJsp.jsp</result>
</action>
</package>
--页面
<s:iterator value="list" id="s">
<tr class="odd">
<td nowrap align="center" ><s:property value="#s.id"/></td>
<td nowrap align="center" ><s:property value="#s.interfaceID"/> </td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td align="center"> </td>
<td nowrap align="center" ></td>
<td nowrap>
</td>
</tr>
</s:iterator>
是当前页提交然后再回到当前页 :sshiteratoraction
private MeanTable mt;
private IMeanTableBiz mb;
private PageBean Pagebean;
private List<MeanTable> list;get.set方法都有的。
public String test() {
HttpServletRequest request = ServletActionContext.getRequest();
String creteDate1=request.getParameter(("creteDate1"));
String creteDate2=request.getParameter(("creteDate2"));
list=this.mb.queryAll(mt, Pagebean, creteDate1, creteDate2);
System.out.println(list);
return "regFailed";
--list.size()是有数据的
}--xml
<package name="sapreport" extends="struts-default" namespace="/sapreport">
<action name="sapReportAction" class="sapReportAction">
<result name="regFailed">/MyJsp.jsp</result>
</action>
</package>
--页面
<s:iterator value="list" id="s">
<tr class="odd">
<td nowrap align="center" ><s:property value="#s.id"/></td>
<td nowrap align="center" ><s:property value="#s.interfaceID"/> </td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td nowrap align="center" ></td>
<td align="center"> </td>
<td nowrap align="center" ></td>
<td nowrap>
</td>
</tr>
</s:iterator>
是当前页提交然后再回到当前页 :sshiteratoraction
<s:iterator value="list">
<s:property value="genreId"/>
</s:iterator>
</s:iterator>
<bean id="iMeanTableBiz" class="com.dare.sapreport.biz.impl.MeanTableBizImpl" parent="baseBiz">
</bean>
<bean id="sapReportAction" class="com.dare.sapreport.web.SapReportAction" scope="prototype">
<property name="mb">
<ref local="iMeanTableBiz" />
</property>
</bean>
</beans>
<td nowrap align="center" ><s:property value="#s.id"/></td>
<td nowrap align="center" ><s:property value="#s.interfaceID"/> </td>
你用${list.id},${list.interfaceID}代替下面的试试
<td nowrap align="center" ><s:property value="#s.id"/></td>
<td nowrap align="center" ><s:property value="#s.interfaceID"/> </td>
<td nowrap align="center" >${list.id}</td>报错