请问list<Object,Map<Object>>在Struts2标签中怎么迭代
//<!--邮件OR短信发送管理-->ActionpublicStringgetSendManagerList(){List<Map<TSendMessage,List<...
// <!-- 邮件 OR 短信发送管理 -->
Action
public String getSendManagerList(){
List<Map<TSendMessage, List<TSendId>>> map=new ArrayList<Map<TSendMessage,List<TSendId>>>();
Map<TSendMessage, List<TSendId>> list=null;
List<TSendMessage> sendmanager=tSendMessageBiz.findAll();
for (int i = 0; i < sendmanager.size(); i++) {
list=new HashMap<TSendMessage, List<TSendId>>();
int sid=sendmanager.get(i).getId();
List<TSendId> l=tSendIdBiz.findByProperty(sid);
list.put(sendmanager.get(i), l);
}
map.add(list);
url="/WEB-INF/sendmanager/sendmanager.jsp";
request.setAttribute("map",map);
return Action.SUCCESS;
}
我已经解决了 http://bbs.csdn.net/topics/390798453?page=1#post-397469292 展开
Action
public String getSendManagerList(){
List<Map<TSendMessage, List<TSendId>>> map=new ArrayList<Map<TSendMessage,List<TSendId>>>();
Map<TSendMessage, List<TSendId>> list=null;
List<TSendMessage> sendmanager=tSendMessageBiz.findAll();
for (int i = 0; i < sendmanager.size(); i++) {
list=new HashMap<TSendMessage, List<TSendId>>();
int sid=sendmanager.get(i).getId();
List<TSendId> l=tSendIdBiz.findByProperty(sid);
list.put(sendmanager.get(i), l);
}
map.add(list);
url="/WEB-INF/sendmanager/sendmanager.jsp";
request.setAttribute("map",map);
return Action.SUCCESS;
}
我已经解决了 http://bbs.csdn.net/topics/390798453?page=1#post-397469292 展开
1个回答
2014-05-29
展开全部
不错,在这表示支持
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询