req.getSession().setAttribute("webUser", webUser); /* in session for same reason as the menu */
req.getSession().setAttribute("webUserGroup", group.getGroupname()); /* for group-specific css; in session for same reason as the menu */
req.getSession().setAttribute("webUserGroupClientProject", group.getClientProject().getName()); /* for clientProject-specific css; in session for same reason as the menu */
// put groups in session for group select box in menu
GroupManager groupMgr = new GroupManager(locale, session);
List<String> groups = new ArrayList<String>();
for (Group g : groupMgr.getGroups()) {
groups.add(g.getGroupname());
}
req.getSession().setAttribute("sysGroupNames", groups);
if (req.getSession().getAttribute("sysCurrentGroupName") == null) {
req.getSession().setAttribute("sysCurrentGroupName", group.getGroupname());