BlogManager blogMgr = new BlogManager(locale, session);
Group group = getGroupParam(req);
List<Blog> blogs = blogMgr.getBlogs(webUser, group);
List<DisplayableBlog> entries = new ArrayList<DisplayableBlog>();
for (Blog b : blogs) {
DisplayableBlog e = new DisplayableBlog(b.getId(), b.getName(), b.getDescription());
entries.add(e);
}
req.setAttribute("entries", entries);
req.setAttribute("labelCloud", blogMgr.getLabelCloud(null, webUser, group, 20)); // top 20 for sidebar
return mapping.findForward("list");