I have a class called AuthenticatedUser which is created when overiding the jdbcDaoImpl method loadUserByUsername, and which contains some additional information I require about the user such as email address, and first & last name etc. The class AuthenticatedUser is returned by the method loadUserByUsername.
The is all working fine and in my Java src I can access the principal and call any methods of the class including my own, such as getFirstName(), without any problems.
My question is, how do I access this inside my JSP pages? Say for example I want to welcome my user on the logged in index page 'Welcome X' where X is the first name of the user, not username.
I am using SpringFramework 3 and Spring Security 2.05.