Hi Diego,
here the section of code from Jugevents (the best ever web application
:-) ) which retrieves the authenticated user:
Authentication authentication =
org.springframework.security.context.SecurityContextHolder.getContext().
getAuthentication();
if (authentication != null && authentication.isAuthenticated()) {
return authentication.getName();
}
return null;
Hope this could help you, basically you retrieve the Authentication
instance using SecurityContextHolder, after that you can get from this
the username that I guess is what you were looking for.
Enrico.
2009/8/14 diego.benna <
diego...@gmail.com>: