This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes HttpSession in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "HttpSession in JSP" Watch "HttpSession in JSP" New topic
Author

HttpSession in JSP

Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
Is it necessary that while doing a project using JSP we need to use Session Attributes? As a beginner, i dont know much about it. Can anyone explain with an example what's the importance of it.

In my project I do have a login page where different users will b logging in at same time. So, can v avoid using HttpSession.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

Why would you want to avoid using sessions?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shailesh Pillai
Ranch Hand

Joined: Jan 24, 2006
Posts: 78
I am not at all aware of the fundamental behind usage of Sessions. Can u briefly xplain its advantages and limitations.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

HTTP is a stateless protocol. The session is used to maintain state between requests.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession in JSP
 
It's not a secret anymore!