File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes print name in header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "print name in header" Watch "print name in header" New topic

print name in header

Mike Phillip
Ranch Hand

Joined: Dec 05, 2007
Posts: 37
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


but didn't work.

I agree. Here's the link:
subject: print name in header
It's not a secret anymore!