文件名称:
文件大小:1KB
文件格式:TXT
更新时间:2016-04-07 14:36:27
java-struts
Address private int aid; private String aname; public int getAid() { return aid; } public void setAid(int aid) { this.aid = aid; } public String getAname() { return aname; } public void setAname(String aname) { this.aname = aname; } action private List
lis = new ArrayList(); public String execute(){ Address add = new Address(); add.setAid(1); add.setAname("aaaa"); Address add2 = new Address(); add2.setAid(2); add2.setAname("bbbb"); getLis().add(add); getLis().add(add2); return "MAIN"; } public List getLis() { return lis; } public void setLis(List lis) { this.lis = lis; } 界面