• Post Reply Bookmark Topic Watch Topic
  • New Topic

want to develop application like this

 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,
I'm a jsp newbie. I want to develop an application which includes one of the features available in javaranch.com. Let me explain this feature briefly. Whenever we log into javaranch with our id's, we get a welcome note (for eg. "Welcome Mahesh"). Subsequently, this msg. is displayed at the top after navigating to other pages also. How do I code this feature? What are the features in JSP which I will need to use for this?
Regards,
- Mahesh.
[ September 12, 2004: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35728
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahesh,
I'm not sure how Javaranch does it because the ranch uses ubb, but here's how we do it at work:

First, you need to store the login ids and person's name in a database (or you could use a file.) When the person logs in, get the name from the database by passing the login id. You can store that name in the HttpSession as an attribute. On each page, display a header or custom tag with the name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!