我用ssh做的,servi.findAll()是从数据库获取所有的信息。然后,我放到Map中。因为我要转为JSON格式的数据,所以需要来遍历Map中的元素。请问如何来遍历??
代码如下:
public String execute() throws Exception {
    Map request = (Map) ActionContext.getContext().get("request");
    request.put("list", service.findAll());
}