struts2标签 <s:iterator>迭代输出ArrayList<String>,详细代码

2024-12-31 07:25:30
推荐回答(1个)
回答1:

action类里:
// pagelist
private List pagelist;
public void setPagelist(List pagelist) {
this.pagelist = pagelist;
}
public List getPagelist() {
return pagelist;
}

jsp里