急求高手,使用ssh框架写项目时,就是先执行action,数据查到了,不能显示在页面上
<s:action name="selInfoAll" namespace="/" executeResult="true"></s:action>
<div>
<s:iterator value="%{list}" id="li" status="st">
<s:textfield value="%{#li.getT_email()}"></s:textfield>
</s:iterator>
</div>
Collection<Station> lists = this.stationService.findAllStation();获取的时候
ActionContext.getContext().put("list", list);
<s:iterator value="list" id="li" status="st">
<s:textfield value="%{#li.getT_email()}">
</s:textfield></s:iterator>
Collection<Station> lists = this.stationService.findAllStation();获取的时候
ActionContext.getContext().getValueStack().getRoot().push(list);
<s:iterator value="top" id="li" status="st">
<s:textfield value="%{#li.getT_email()}">
</s:textfield></s:iterator>
<div>
<s:iterator value="%{list}" id="li" status="st">
<s:textfield value="%{#li.getT_email()}"></s:textfield>
</s:iterator>
</div>