• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

print name in header

 
Mike Phillip
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I want to show the user's name in the header of my page after the user logs in(like javaranch does: "hello, username".

When the user logs in I do this in the action:
session.setAttribute("user", loginForm.getLogin());


now, how can I show the attribute in the page? I tryed a

#{sessionScope.user}

but didn't work.

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic