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: http://aspose.com/file-tools
subject: print name in header
Similar Threads
Setting response headers conditionally
God I hope someone has a solution...
JSTL or JQuery plug-ins?
How Do You Send text/html After Sending A ServletOutputStream File To The Client?
how to count number of visitors