I have implemented UserDetailsService, it returns an instance of MyUser (which implements UserDetails)
public MyUser l
After analyzing the HTTPSesson, immediately after the successful log in, I found out that there is an attribute named SPRING_SECURITY_CONTEXT. For example, mine custom UserDetails has object named user, which has property firstName. In JSP, value of this property can be reached with the following:
${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.user.firstName}