HashMap<String,String> roles = context.getRoles();
roles.clear();
//将此项目所拥有的角色加入环境当中
Role role = new Role();
role.setProjectId(project.getProjectId());
ArrayList list = dp.query(role);
int size = list.size();
for(int i=0; i<size; i++) {
role = (Role)list.get(i);
roles.put(role.getRoleId().toString(),role.getRoleName());
}
request.getSession().setAttribute(Globals.SYS_USER_CACHE, userCache);
returnPath = "/WEB-INF/AjaxMain.jsp";
}