Prashant Khanal wrote:
To get the logged in user from the action i used :
SecurityContext ctx = SecurityContextHolder.getContext();
if (ctx != null) {
Authentication auth = ctx.getAuthentication();
User loggedInUser = (User) auth.getPrincipal();
}
As
hello all
anyway i got the answer but dunno whether or not it is appropriate
i wrapped the jsp snippet to hide it if the user is not logged in as
Welcome
, logout
To get the logged in user from the action i used :
SecurityContext ctx = SecurityContextHolder.getContext();
if (ctx
2 matches
Mail list logo