发布网友 发布时间:2022-04-22 18:34
共1个回答
热心网友 时间:2023-07-05 13:42
Action:
public class ApplicationTest implements Action,ApplicationAware{
private Map application;
public String execute() throws Exception {
List list = new ArrayList();
list.add("AA");
list.add("BB");
application.put("list", list);
return SUCCESS;
}
public void setApplication(Map application) {
this.application = application;
}
}
Jsp:
<s:iterator value="#application.list">
<s:property/>
</s:iterator>