struts2在Action里面怎么把全部数据输出到页面??
本人新手,如题。
代码写到此不知如何继续写:
public class CeshiInputActionImpl extends ActionSupport implements CeshiInputAction { private CeshiInput ci; private CeshiInputService ciService; public void input(CeshiInput ci) { this.ciService.save(ci); } public void delete(CeshiInput ci) { this.ciService.delete(ci); } public void edit(CeshiInput ci) { this.ciService.edit(ci); } public String findAll() { //这里怎么往页面输出啊?能得到一个List集合(结果集) return null; }
ActionContext.getContext().put("userlist", list);