Java mit JSTL anwenden
GenericPrincipal principal = (GenericPrincipal) request.getUserPrincipal(); String loginName = principal.getName(); pageContext.setAttribute("loginName", loginName); String[] loginRoles = principal.getRoles(); pageContext.setAttribute("loginRoles", loginRoles);