File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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

#{sessionScope.user}

but didn't work.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: print name in header
 
Similar Threads
How Do You Send text/html After Sending A ServletOutputStream File To The Client?
JSTL or JQuery plug-ins?
how to count number of visitors
Setting response headers conditionally
God I hope someone has a solution...