This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

want to develop application like this  RSS feed

 
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
Sheriff
Posts: 37242
519
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!